Chapter 1
- Correct answer: (B) False. A container that is based on one architecture cannot be run on a different architecture. For example, an image created using the x86 architecture will not run on an ARM-based architecture.
- Correct answer: (D) Union filesystem. Docker uses the Union filesystem to manage multiple image layers. The layers are read from top to bottom to provide the appearance of a single filesystem.
- Correct answer: (D) Overlay2. A system running a kernel that's version 4.0 or above will use the Overlay2 storage driver.
- Correct answer: (C) Container layer. Any changes that are made to a running container's filesystem are stored in the topmost layer, called the container layer.
- Correct answer: (C)
docker exec -it <container> /bin/bash
. Thedocker exec
command is used to execute a process in a container. Using the-it
option tells the exec command to use an interactive terminal for its execution. The process you want to execute is the...