0
0
Dockerdevops~5 mins

Registry mirroring concept in Docker - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AFaster image downloads
BMore image storage space
CBetter image security
DAutomatic image updates
Where do you configure Docker to use a registry mirror?
A/var/lib/docker/mirror.conf
B~/.docker/config.json
C/etc/docker/daemon.json
D/usr/bin/docker-mirror.conf
If a registry mirror is down, what does Docker do when pulling an image?
AFails immediately
BTries the main Docker Hub registry
CUses a backup mirror automatically
DPulls from local cache only
Which URL format is correct for a registry mirror in daemon.json?
Ahttps://mirror.example.com
Bmirror.example.com
Chttp://mirror.example.com
Dftp://mirror.example.com
What does a registry mirror cache?
ADocker networks
BDocker containers
CDocker volumes
DDocker images
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.