Recall & Review
beginner
What is a private Docker registry?
A private Docker registry is a secure place where you can store and share your Docker images within your organization, instead of using public registries like Docker Hub.
Click to reveal answer
beginner
Which Docker command starts a private registry container?
The command is
docker run -d -p 5000:5000 --name registry registry:2. It runs the official registry image on port 5000.Click to reveal answer
intermediate
Why do you need to configure Docker clients to trust a private registry?
Because private registries often use self-signed certificates or run without HTTPS, Docker clients must be told to trust them to allow pushing and pulling images.
Click to reveal answer
beginner
How do you tag an image to push it to your private registry?
Use
docker tag <image> localhost:5000/<image> to tag the image with the private registry address before pushing.Click to reveal answer
beginner
What is the purpose of the
docker push command in setting up a private registry?It uploads your Docker image to the private registry so others can pull and use it.
Click to reveal answer
Which port does the default Docker private registry listen on?
✗ Incorrect
The default Docker registry container listens on port 5000.
What command starts a Docker registry container?
✗ Incorrect
This command runs the official Docker registry image as a container on port 5000.
Before pushing an image to a private registry, what must you do?
✗ Incorrect
You must tag the image with the private registry's address to push it there.
Why might you need to configure Docker to trust your private registry?
✗ Incorrect
Private registries often use self-signed certificates or run without HTTPS, so Docker must be configured to trust them.
What does the
docker push command do?✗ Incorrect
The
docker push command uploads your image to the specified registry.Explain the steps to set up a private Docker registry and push an image to it.
Think about starting the registry, preparing the image, and uploading it.
You got /4 concepts.
Why is it important to configure Docker clients to trust a private registry, and how can this be done?
Focus on security and Docker client settings.
You got /4 concepts.