Docker Resp
Docker Resp
What is the Docker command syntax to inspect a Docker bridge? docker network inspect bridge
The virtual bridge that the Docker establishes is called ________. docker0
When a container is started, Docker establishes a bridge between __________. host machine and
container
On installing Docker, the three networks that are automatically created are ________. bridge, host,
none
What is the Docker command to disconnect a container from the bridge network? docker network
disconnect bridge <container>
Which among the following network can be created by users? Bridge and Overlay network
Docker network inspect command will list the containers running in the network. True
Which one of the following is correct? Multiple container layers can be built on top of an Image layer
Configuration changes should be done in _________file to modify the storage driver used.
daemon.json
Storage driver and data volumes are independent of each other. True
Which Docker command is used to know the current storage driver configured docker info
Storage driver manages the contents of ____________. Images and container layer
Which of the following is a valid docker command to add a data volume? docker run -d -P --name
web -v /webapp training/webapp
Which of the following are storage drivers supported by Docker for Ubuntu systems? All the options
Which of the following is the docker command to remove unused volumes? docker volume prune
Using docker compose, we cannot bring up more than one service. False
Docker inspect command is used to ________. low level information on docker objects
Which is the docker syntax to locate a volume which is mounted to a container? docker inspect
<container_name>
Which of the following is another term to describe container virtualization? Hypervisor vitualization
Three events that are captured in docker diff command are _______. A – Add, D – Delete, C -Change
_________is a text document that contains all the commands a user could run on the command line to
assemble an image. Dockerfile
Which is the Docker command to show the version information of the docker components? docker
version
Which docker command lets us attach to a running container? docker attach <container>
What happens when you execute the command? docker run debian /bin/sh A container is created
and then exited immediately
By default, what happens to docker container, when the process it is running exits? Container exits
Which option can we pass to the docker daemon to assign docker bridge to specific IP range? --bip
What is the syntax to mount a /project/data directory from docker host into a directory /data in
container? docker run -v /project/data:/data
Docker images have a different state and change with time. False
_________ is a tool for defining and running multi-container Docker applications. docker
compose
Which Dockerfile instruction can be used to install packages to our new image? RUN
Which of the following is the correct way to name a docker file? Dockerfile
Which of the following command will install Docker engine(Community edition) in a Centos server?
yum install docker-ce
Which of the following is true? docker ps shows all running containers by default.
What happens when you press Cntrl + P + Q inside of container? Detaches the Docker host terminal from
the container
Which is the Docker command to build a docker image using docker file in the current directory? docker
build .
Which of the following command will start a container based on Ubuntu 14.04 base image? docker
run ubuntu:14.04
Which of the following is a valid docker inspect command to display logpath? docker inspect
--format='{{.LogPath}}' tomcatContainer