Docker

Docker Test 2

0%

When a Container is formed from an image, which Dockerfile command is specified as the default application?

Correct! Wrong!

Explanation:
The ENTRYPOINT option specifies the concrete default application that is used every time the image is used to build a container.

Which Dockerfile command provides a mount point within the Container that connects it to the Docker Host's file systems?

Correct! Wrong!

Explanation:
VOLUME — Creates a mount point within the Container that connects it to the Docker Host's file systems. The contents of the chosen point in the image are filled into new volumes. It's also important to note that specifying Volumes in a Dockerfile can cause problems.

Is this a UCP function?

Solution: analyzes photos to look for any security flaws.

Correct! Wrong!

Explanation:
Docker Universal Control Plane (UCP) is an enterprise on-premise solution that allows IT operations teams to deploy and maintain Dockerized apps in production while also providing developers with the agility and portability they require, all while staying inside the business firewall.

Which of the following instructions is most commonly used to specify default arguments for an ENTRYPOINT command?

Correct! Wrong!

Explanation:
CMD specifies the container's default commands and/or parameters. If you require a default command that users can simply override, CMD is the best command to employ.

Which of the following commands can be used to tell Docker that certain ports are used by containers?

Correct! Wrong!

Explanation:
Docker EXPOSE is a Dockerfile directive or instruction that tells Docker that while executing a container, the image built by this Dockerfile will listen on this port. It does not expose the indicated port; rather, it is a type of documentation that informs the person in charge of the container about the port that must be exposed or published in order for outside communication to reach the container.

ARG variables, like ENV variables, are stored in the created image.

Correct! Wrong!

Explanation:
ENV settings, unlike ARG instructions, are always saved in the created image. ENV variables are preserved in the created image, while ARG variables are not. The arguments can be saved elsewhere, the most convenient place being in an environment variable.

Which of the following patterns would prevent the copying of all Phyton byte-code files during the Docker image generation process?

Correct! Wrong!

Explanation:
Beyond the filepath in Go. Docker also has a special wildcard string ** that can be used to match any number of directions (including zero). **/*.go, for example, will exclude any files ending in.go that are found in all directories, including the build context's root.

A production host using the devicemapper as a storage driver should employ which of the following lvm modes?

Correct! Wrong!

Explanation:
The direct-lvm mode is intended for usage in production.

Which of the following settings will allow you to SSH into a Docker container named 'nginx' that is currently running?

Correct! Wrong!

Explanation:
docker exec -it nginx /bin/sh will start an interactive session with a TTY attached to STDIN.