Docker Test 1

0%

To connect a container to a network, select the docker command.

Correct! Wrong!

Explanation:
You can connect external content to the network using the network name with the command $ docker network connect network name> container name>. To see the containers having network access, simply run the command.

Which Dockerfile command should you use to make modifications to your Image and, as a result, the Containers that are launched from it?

Correct! Wrong!

Explanation:
RUN — Specify commands to modify your Image and, as a result, the Containers created from it. This includes things like updating packages, installing software, adding users, setting up a database, and so on. These are the commands you'd use to install and configure your program from the command line.

In Docker, what is a standardized, enclosed environment for running applications?

Correct! Wrong!

Explanation:
A Docker Container is a contained, standardized environment for running applications. The Docker API or CLI are used to manage containers. A Docker image is a container-building template that is read-only.

Docker uses which file system to supply the building blocks for containers?

Correct! Wrong!

Explanation:
Union file systems are used by Docker to supply the building blocks for containers. AUFS, btrfs, vfs, and DeviceMapper are all union file system types that Docker can use.

In Docker, which of the following has native clustering functionality?

Correct! Wrong!

Explanation:
A Docker Swarm is a collection of physical or virtual machines that have been configured to join together in a cluster and run the Docker application. You can still run the Docker commands you're used to once a set of machines has been clustered together, but they'll be handled by the machines in your cluster.

What enables multiple Docker daemons to scale containers?

Correct! Wrong!

Explanation:
A Docker registry is a storage and distribution system for Docker images with particular names. Several copies of the same image may exist, each with its own set of tags. A Docker registry is divided into Docker repositories, each of which keeps track of all image changes.

What is the Docker daemon's name?

Correct! Wrong!

Explanation:
The Docker daemon (dockerd) manages Docker objects such as images, containers, networks, and volumes by listening for Docker API requests. To manage Docker services, a daemon can communicate with other daemons.

Which Dockerfile command modifies the environment variables within the image-based Containers?

Correct! Wrong!

Explanation:
ENV is a container that will run in the future. For creating your Docker image, use ARG. The fundamental purpose of ENV is to offer default values for future environment variables. Environment variables can be accessed by running dockerized programs. It's an excellent approach to give your project configuration values.

Which Dockerfile command specifies which files from the Host file system should be copied to the Container?

Correct! Wrong!

Explanation:
Dockerfiles Command ADD - Defines files to copy from the Host file system onto the Container

Premium Tests $49/mo
FREE April-2024