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?
✗ Incorrect
docker push uploads your image to Docker Hub.
What must you do before pushing an image to Docker Hub?
✗ Incorrect
You must tag the image so Docker knows where to push it.
How do you authenticate with Docker Hub from the command line?
✗ Incorrect
docker login lets you enter your Docker Hub credentials.
What is a private repository on Docker Hub?
✗ Incorrect
Private repositories restrict access to selected users.
Which of these is NOT a feature of Docker Hub?
✗ Incorrect
Docker Hub stores images but does not run containers.
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.