Recall & Review
beginner
What is a registry mirror in Docker?
A registry mirror is a local copy of a Docker registry that stores images closer to users to speed up downloads and reduce load on the main registry.
Click to reveal answer
beginner
Why use a registry mirror?
Using a registry mirror helps reduce download time for images, saves internet bandwidth, and improves reliability when the main registry is slow or unreachable.
Click to reveal answer
intermediate
How does Docker decide to use a registry mirror?
Docker clients check their configuration for mirror URLs and try to pull images from the mirror first before going to the main Docker Hub registry.
Click to reveal answer
intermediate
What is the main configuration file to set up a registry mirror in Docker?
The main configuration file is the daemon.json file, where you add the "registry-mirrors" key with the mirror URL(s).
Click to reveal answer
beginner
Give an example of a registry mirror configuration in daemon.json.
{
"registry-mirrors": ["https://my-mirror.example.com"]
}
Click to reveal answer
What is the main benefit of using a Docker registry mirror?
✗ Incorrect
Registry mirrors speed up image downloads by caching images closer to users.
Where do you configure Docker to use a registry mirror?
✗ Incorrect
The daemon.json file is used to configure Docker daemon settings including registry mirrors.
If a registry mirror is down, what does Docker do when pulling an image?
✗ Incorrect
Docker falls back to the main registry if the mirror is unavailable.
Which URL format is correct for a registry mirror in daemon.json?
✗ Incorrect
Registry mirrors should use HTTPS URLs for security.
What does a registry mirror cache?
✗ Incorrect
Registry mirrors cache Docker images to speed up downloads.
Explain what a Docker registry mirror is and why it is useful.
Think about how having a local copy helps speed things up.
You got /3 concepts.
Describe how to configure Docker to use a registry mirror.
Focus on the configuration file and the key name.
You got /4 concepts.