Working with Docker Images and Containers

Assess your ability to build,manage,and run Docker images and containers.

1. Which Docker command is used to build an image from a Dockerfile?
2. What is the primary difference between a Docker image and a container?
3. Which Dockerfile instruction sets a command that can be overridden at runtime?
4. What does the '-d' flag do in 'docker run'?
5. Which command lists all Docker images stored locally?
6. What is the purpose of the 'FROM' instruction in a Dockerfile?
7. Which command stops a running Docker container gracefully?
8. What is a Docker image layer?
9. Which commands list Docker containers (select all that apply)?
10. Which Dockerfile instructions create new image layers (select all that apply)?
11. Which commands remove a Docker container (select all that apply)?
12. What are benefits of Docker containers (select all that apply)?
13. Which are true about Docker Hub (select all that apply)?
14. A Docker container can be restarted after being stopped.
15. The 'docker pull' command downloads an image from a registry to the local machine.
16. The 'ADD' Dockerfile instruction is identical to 'COPY' with no extra functionality.
17. Docker containers share the host operating system's kernel.
18. What command displays logs of a running Docker container (abbrev. allowed)?
19. Name the Dockerfile instruction that documents which port a container listens on.
20. What term describes persistent storage for Docker containers outside their filesystem?
Answered 0 of 0 — 0 correct