Test your understanding of the concepts covered in the Hello World chapter.
Q1. In Docker terminology, what is the precise relationship between a Docker Image and a Docker Container?
Explanation
Images serve as read-only blueprints (templates) of your application, whereas Containers are the isolated, runnable instances instantiated from those images.
Q2. Which command downloads a Docker image (such as `busybox`) from Docker Hub to your local machine without executing it?
Explanation
The `docker pull` command fetches the specified image from a remote registry (like Docker Hub) and saves it to your local Docker image cache.
Q3. If you create a text file inside an interactive container shell (`docker run -it busybox sh`) and then exit, what happens when you start a new container from the same image?
Explanation
Docker containers feature isolated, ephemeral file systems. Changes made inside one container instance do not persist into new container instances unless mounted to volumes.
Q4. Which flag passed to `docker run` automatically cleans up and deletes the container instance once its process completes?
Explanation
The `--rm` flag instructs Docker to remove the container and its temporary file system automatically as soon as it exits, preventing disk clutter.