0
0
Dockerdevops~5 mins

Docker Hub as image registry - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is Docker Hub?
Docker Hub is a cloud-based service where you can store and share Docker container images with others.
Click to reveal answer
beginner
How do you push a Docker image to Docker Hub?
First, tag your image with your Docker Hub username and repository name, then use the command docker push username/repository:tag.
Click to reveal answer
beginner
What command logs you into Docker Hub from the command line?
Use docker login and enter your Docker Hub username and password when prompted.
Click to reveal answer
beginner
Why do you need to tag a Docker image before pushing it to Docker Hub?
Tagging tells Docker where to send the image by specifying the repository and optionally the version, so Docker Hub knows how to store it.
Click to reveal answer
beginner
What is the difference between a public and a private repository on Docker Hub?
Public repositories can be accessed and pulled by anyone, while private repositories are restricted and require permission to access.
Click to reveal answer
Which command do you use to upload a Docker image to Docker Hub?
Adocker push
Bdocker pull
Cdocker run
Ddocker build
What must you do before pushing an image to Docker Hub?
ACreate a Dockerfile
BRun the image locally
CDelete the image
DTag the image with your Docker Hub repository name
How do you authenticate with Docker Hub from the command line?
Adocker push
Bdocker login
Cdocker pull
Ddocker logout
What is a private repository on Docker Hub?
AA repository only accessible to authorized users
BA repository anyone can access
CA repository that stores only images you build locally
DA repository that automatically deletes images
Which of these is NOT a feature of Docker Hub?
AStoring Docker images
BSharing images publicly or privately
CRunning containers in the cloud
DAutomated builds from GitHub
Explain the steps to push a Docker image to Docker Hub.
Think about logging in, tagging, then pushing.
You got /3 concepts.
    Describe the difference between public and private repositories on Docker Hub.
    Consider who can see and use the images.
    You got /3 concepts.