Font size
WorksheetsDevOps-2 [Containers and K8s]
Total questions: 10
Worksheet time: 6mins
Which of the following is not a component of Docker Architecture?
Docker Machine
Docker Engine
Docker Runtime
Docker Registry
Docker Daemon
You are trying to push an image to Dockerhub however unable to do so. Which would not be a possible reason?
You are not logged in to Docker. (use "docker login" command)
Network connectivity between your docker host and docker Hub
Your image is not correctly tagged as per Docker recommendations
You do not have an account on Docker Hub
You should use Docker Swarm or Kubernetes orchestration engines to push images to Docker registry
You need to create a Docker container based on nginx image and need to root prompt of the container. Which command would help you achieve it?
docker run -it nginx /bin/bash
docker container run -it nginx
docker container run -d nginx
docker container run -itd --name=web nginx
docker exec -it nginx:latest /bin/bash
Which one of the following is not a command under "image" management commands for Docker?
build
pull
inspect
pause
rm
Which of the following Network interface gets created when you install Docker runtime on Docker host?
Docker1
Docker0
eth0
eth1
Which of the following is not part of Kubernetes Worker nodes?
Kube Proxy
Kubelet
Kube-scheduler
Container Runtime
Which language is supported for writing Kubernetes object definitions?
JSON
Kubernetes DSL
YAML
Python
What is kube-apiserver?
Consistent and highly-available key value store used as Kubernetes' backing store for all cluster data.
Control plane component that watches for newly created Pods with no assigned node, and selects a node for them to run on.
Component of the Kubernetes control plane that exposes the Kubernetes API. The API server acts as the front end for the Kubernetes control plane.
An agent that runs on each node in the cluster. It makes sure that containers are running in a Pod.
Which of the following is not a recommended Dockerfile Directive?
FROM
COPY
MAINTAINER
LABEL
EXPOSE
Which of the following is/are valid docker commands which will bind ports on container to the ports on the host on which it is running?
docker container run -P <imagename>
docker container run -P 8080:80 <imagename>
docker container run -p <imagename>
docker container run -p 8080:80 <imagename>
