Which statement correctly describes the difference between a public and a private repository on Docker Hub?
Think about who can access the images without logging in.
Public repositories are open to everyone and free to use. Private repositories restrict access and usually require a paid subscription.
What will be the output when running docker pull myusername/myprivaterepo:latest without logging in to Docker Hub?
docker pull myusername/myprivaterepo:latestConsider what happens when you try to access a private repo without credentials.
Docker requires authentication to pull images from private repositories. Without login, it denies access.
Arrange the following steps in the correct order to push a Docker image to a private repository on Docker Hub.
Think about building first, then logging in, tagging, and finally pushing.
You first build the image locally, then login to Docker Hub, tag the image with your repo name, and push it.
You run docker pull myusername/myprivaterepo:latest and get the error: unauthorized: authentication required. What is the most likely cause?
Think about authentication requirements for private repos.
Private repositories require authentication. Without logging in, Docker cannot pull the image.
Which practice is the best way to securely manage access to private Docker Hub repositories in a team environment?
Think about managing access without sharing passwords.
Using organization accounts with role-based access control allows secure and manageable access for teams.