Docker - Magneta
When a container is started, Docker establishes a bridge between __________. --
host machine and container
Container networking model explains architecture for ________. -- all
Docker network inspect command will list the containers running in the network. --
true
Default inet address for docker is _________. -- 172.17.42.1.
On Docker installation, the three networks that are automatically created are
______________. -- bridge, host, none
What is the Docker command syntax to inspect a docker bridge? -- docker network
inspect bridge
Container networking model explains architecture for ________. -- networking
What is the Docker command to disconnect a container from bridge network? == docker
network disconnect bridge <container>
The virtual bridge that docker establishes is called ________. -- docker0
Which among the following network can be created by users? -- Bridge and Overlay
network
Storage driver and data volumes are independent of each other. -- true
Configuration changes should be done in _________file to modify the storage driver
used. -- driver.json* daemon.json
Which one of the following is correct? -- Multiple container layers can be built on
top of an Image layer
Docker volumes can be backed up/restored/migrated. -- true
Which of the following is a valid docker command to add a data volume? -- docker
run -d -P --name web -v /webapp training/webapp
Storage driver manages the contents of ____________. -- images and container
Storage drivers cannot be modified and configured in docker. -- false
Which of the following are storage drivers supported by Docker for Ubuntu systems?
-- all
Container storage layer is read-only. -- false
Which Docker command is used to know the current storage driver configured? --
docker info
Which is the docker syntax to locate a volume which is mounted to a container? --
docker inspect <container_name>
Which of the following is a valid docker inspect command to display logpath? --
docker inspect --format='{{.LogPath}}' tomcatContainer
Docker inspect command is used to ________. -- low level information on docker
objects
Which of the following command will install Docker engine in a Centos server?--yum
install docker
Which docker command lets us attach to a running container? --    docker attach
<container>
_________ is a tool for defining and running multi-container Docker applications.
-- docker compose
Which of the following is another term to describe container virtualization? -- OS
level virtualization*
Which Dockerfile instruction can be used to install packages to our new image? --
RUN* apt-install*
_________is a text document that contains all the commands a user could run on the
command line to assemble an image -- docker file
What is the command to stop a container? -- docker stop <Container>
Which of the following is the correct way to name a docker file? -- Dockerfile
What happens when you press Cntrl + P + Q inside of container? --
Detaches the Docker host terminal from the container
Docker images have a different state and change with time. -- false
Virtual machines are a form of ____________ type of virtualization. -- hypervisor
Which option can we pass to the docker daemon to assign docker bridge to specific
IP range -- --bip
Which of the following is true? -- docker ps shows all running containers by
default.
Which is the Docker command to show the version information of the docker
components? -- docker version
Which of the following command will start a container based on Ubuntu 14.04 base
image? -- docker run ubuntu:14.
Three events that are captured in docker diff command are _______. -- A – Add, D –
Delete, C -Change
What happens when you execute the command? Docker run debian /bin/sh -- cli*A
prompt from shell of created container will be thrown to you
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*
By default, what mode do docker containers run in? --foreground
By default, what happens to docker container, when the process it is running exits?
-- Container exits*
Which is the Docker command to build a docker image using docker file in the
current directory? -- docker build .