0
0
Dockerdevops~5 mins

Setting up private registry in Docker - Quick Revision & Summary

Choose your learning style9 modes available
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?
A8080
B80
C443
D5000
What command starts a Docker registry container?
Adocker build registry
Bdocker run -d -p 5000:5000 --name registry registry:2
Cdocker start registry
Ddocker push registry
Before pushing an image to a private registry, what must you do?
ATag the image with the registry address
BDelete the image
CRun docker pull
DRestart Docker daemon
Why might you need to configure Docker to trust your private registry?
ABecause private registries require a password
BBecause Docker only trusts public registries
CBecause it may use self-signed certificates or no HTTPS
DBecause Docker needs a license
What does the docker push command do?
AUploads an image to a registry
BDownloads an image from a registry
CDeletes an image locally
DBuilds a new image
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.