PLAY READ BLOG

Assess your experience with Docker

I estimate it would take you 40 steps in 10 minutes to Assess your experience with Docker.
What happens to the contents of a Docker volume if you export a container with the docker export command?
1. Contents of the volume are exported with the container

2. Contents of the data volume are not exported with the container

3. The volume is removed until the container is imported elsewhere

4. Containers with data volumes cannot be exported
  • 1.
  • 2.
  • 3.
  • 4.
Containers need to run on an operating system where the kernel matches the OS kernel in the Docker image. As a result, what can you run?
1. Linux and Windows containers on any *nix-based system

2. Windows containers on Windows Server and Linux containers on Linux

3. Linux containers on Linux, and Windows containers on Windows or Linux
  • 1.
  • 2.
  • 3.
You need to find out the subnet and IPAM configuration of an overlay network you created a while ago. Which command can give you this detail?
1. docker network inspect <network-name>

2. docker network detail <network-name>

3. docker inspect | grep <network-name>
  • 1.
  • 2.
  • 3.
Which of the following describes a Dockerfile?
1. An XML file that contains instructions on how to build a Docker image

2. A golang (.go) source code file containing instructions on how to build a Docker image

3. A plain text file that contains instructions on how to build a Docker image

4. A JSON formatted file that contains instructions on how to build a Docker image
  • 1.
  • 2.
  • 3.
  • 4.
What are some of the advantages data volumes have over storing data inside of a container?
1. Faster read and write I/O, and sharing data between containers

2. Data volumes work with the new OverlayFS storage driver

3. Data volumes compress and deduplicate data by default

4. Data volumes can be protected by RAID whereas data stored inside of container cannot
  • 1.
  • 2.
  • 3.
  • 4.
If you use docker container run with a reference for a public image on Docker Hub that is not in your local Docker cache, what will result?
1. The container run command fails with the error "Image not found."

2. Docker asks you to authenticate to Docker Hub.

3. Docker pulls the image before starting the container.
  • 1.
  • 2.
  • 3.
How could you find out the IPv4 address of a running container that has no interactive shell attached to it?
1. Run a brctl command on the Docker host and grep for "IPAddress"

2. Run a docker inspect <container-name-or-id> command from within the container and grep for "IPAddress"

3. Run a docker config command on the Docker host and grep for "IPAddress"

4. Run a docker inspect <container-name-or-id> command on the Docker host and grep for "IPAddress"
  • 1.
  • 2.
  • 3.
  • 4.
You consider deploying Docker to manage containers in an enterprise environment. Company policy states that all software must have a commercial support agreement. Which versions of Docker comply?
1. Any Docker.io release before 1.12

2. Docker Desktop on Mac and Windows

3. Docker Community Edition on Linux

4. Docker Enterprise on Linux and Windows
  • 1.
  • 2.
  • 3.
  • 4.
What command deletes an image in Docker?
1. docker image rm

2. docker image --remove

3. docker kill
  • 1.
  • 2.
  • 3.
You find it difficult referencing with the ID or system supplied name. How can this be made easier for container management?
1. Use --name option to docker run

2. Use -N option to docker run

3. Use -n option to docker run
  • 1.
  • 2.
  • 3.
How can we locate the location of container metadata using Docker commands?
1. docker inspect

2. docker info

3. docker version

4. docker build
  • 1.
  • 2.
  • 3.
  • 4.
Which subcommand to docker will list the version of the client, engine and go?
1. ps

2. list

3. version

4. show
  • 1.
  • 2.
  • 3.
  • 4.
When you launch a container you pass the -P flag to the docker run command. How can you view the ports that are mapped in the container?
1. Log into the container and perform a dockerinspect command and look at the "Ports" section under "NetworkSettings"

2. View the /etc/resolv.conf file on the Docker host

3. Perform a docker inspect against the container and look in the "Ports" under "NetworkSettings"
  • 1.
  • 2.
  • 3.
You have a requirement to hot mount data into running containers. Which of the following technologies is best suited for that?
1. SAN LUNs

2. Overlay networking

3. CIFS shares

4. Data volumes
  • 1.
  • 2.
  • 3.
  • 4.
What is the recommended way to gain shell access to a running container?
1. Telnet into the container

2. SSH into the container

3. Use the docker exec command and start a shell program
  • 1
  • 2
  • 3
You have launched a container with port 80 exposed but port 80 is not showing as mapped through to the Docker host. Which of the following is the most likely cause?
1. Port 80 is a protected container port and cannot be exposed to the Docker host

2. The port was exposed using the "--expose" runtime flag instead of the EXPOSE Dockerfile instruction

3. Your containerized application is not working correctly not listening on port 80

4. Exposing a port does not actually create the port mapping. You still have to map the port when launching the container
  • 1.
  • 2.
  • 3.
  • 4.
Which of the following is true of image layers?
1. More image layers increases container performance

2. More image layers is considered better than fewer image layers

3. Fewer image layers is considered better than more image layers
  • 1.
  • 2.
  • 3.
What element of Docker provides the container runtime environment?
1. Client

2. Port

3. Engine

4. Stevedore
  • 1.
  • 2.
  • 3.
  • 4.
Which command can be used to download an image prior to its use?
1. docker pull

2. docker run

3. docker build

4. docker download
  • 1.
  • 2.
  • 3.
  • 4.
Get Started   

Or consider 68 other intentions.