What is the primary role of the Docker Client in the Docker architecture?
Think about which part the user interacts with directly to control Docker.
The Docker Client is the command-line tool or API that users interact with. It sends commands to the Docker Daemon, which does the actual work of managing containers and images.
Which statement best describes the function of the Docker Daemon?
Consider which component actually runs containers and handles Docker commands.
The Docker Daemon runs on the host machine and listens for commands from the Docker Client. It manages images, containers, networks, and storage volumes.
What is the main purpose of a Docker Registry in the Docker architecture?
Think about where Docker images are saved and shared from.
A Docker Registry is a storage and distribution system for Docker images. Public registries like Docker Hub or private registries allow users to push and pull images.
Arrange the steps in the correct order when a user runs docker run command.
Think about the logical order from command to container start.
First, the client sends the command. Then the daemon checks for the image locally. If missing, it pulls from the registry. Finally, it creates and starts the container.
A user runs docker ps but gets the error: Cannot connect to the Docker daemon. What is the most likely cause?
Consider what happens if the client cannot talk to the daemon.
The error means the Docker Client cannot reach the Docker Daemon. This usually happens if the daemon is stopped or there are permission/network issues.