Complete the command to pull an image from a mirrored registry.
docker pull [1]/library/nginx:latestThe mirror registry URL replaces the default Docker Hub URL to pull images from the mirror.
Complete the configuration file snippet to set up a registry mirror in Docker daemon.
{
"registry-mirrors": ["[1]"]
}The Docker daemon configuration requires the mirror URL with protocol to enable registry mirroring.
Fix the error in the command to start a local registry mirror container.
docker run -d -p 5000:5000 --name registry-mirror [1]
The official Docker registry image is 'registry:2'. Using this image starts a registry container suitable for mirroring.
Fill both blanks to configure Docker daemon to use a mirror and disable the default registry.
{
"registry-mirrors": ["[1]"],
"insecure-registries": ["[2]"]
}The 'registry-mirrors' setting requires the full URL with protocol, while 'insecure-registries' uses the host and port without protocol.
Fill all three blanks to create a dictionary comprehension that filters images from the mirror with size greater than 100MB.
filtered_images = {img: size [1] size for img, size in images.items() if size [2] [3]The comprehension multiplies size by itself (size * size) and filters sizes greater than 100MB (100 * 1024 * 1024 bytes).