Docker - Intro to virtualization and containers - multichoice questions
Question 1
How does the docker client communicate with the docker server on the same machine?
- via UNIX socket
- via TCP socket.
- via HTTP request/response.
- None of the above.
Question 2
Given the below output to the command docker ps
, what is the most likely reason(s) for the error?
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
- The docker client is not running.
- The docker daemon is not running.
- The user cannot write to
/var/run/docker.sock
. - The user cannot read the daemon's answer from
/var/run/docker.sock
.
Question 3
Every Linux container can:
- Kill other processes.
- Execute system calls.
- Use the CPU like any other processes.
- Access the host machine's file system.
Question 4
X is an abstract version of a computer, while Y is an abstract version of an application.
- Containers, Virtual machines.
- Virtual machines, Bare metal.
- Virtual machines, containers.
- Base metal, Containers.
Question 5
Which of the following resources is shared by all containers?
- Libraries
- Kernel
- Application code
- Software running on the OS system.