0% found this document useful (0 votes)
228 views2 pages

Docker Resp

The document contains questions and answers related to Docker commands, networking, storage drivers, and container concepts. Some key points covered are: - The default Docker bridge network is called "bridge" and has an IP address of 172.17.42.1 - The networks automatically created by Docker are bridge, host, and none - Storage drivers like aufs and overlay manage image and container layers - Commands like docker network inspect, docker volume prune, and docker info provide configuration and system information

Uploaded by

IgorJales
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
228 views2 pages

Docker Resp

The document contains questions and answers related to Docker commands, networking, storage drivers, and container concepts. Some key points covered are: - The default Docker bridge network is called "bridge" and has an IP address of 172.17.42.1 - The networks automatically created by Docker are bridge, host, and none - Storage drivers like aufs and overlay manage image and container layers - Commands like docker network inspect, docker volume prune, and docker info provide configuration and system information

Uploaded by

IgorJales
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Pregunta Respuesta

What is the Docker command syntax to inspect a Docker bridge? docker network inspect bridge

The default Inet address for Docker is _________. 172.17.42.1

Container networking model explains the ________ architecture. Networking

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

Docker volumes can be backed up/restored/migrated. 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

Container storage layer is read-only. False

Storage drivers cannot be modified and configured in docker. False

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

What is the command to stop a container? docker stop <Container>

_________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>

Virtual machines are a form of ____________ type of virtualization. Hypervisor

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

By default, what mode do docker containers run in? foreground mode

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

You might also like