What is Docker Hub?
Create an account
We will start by creating a user account.
- Browse to https://hub.docker.com.
- Complete the registration form and sign up to Docker Hub.
- You'll receive an email with a verification link.
- Now you can click the Sign in link (top-right) and login to your Docker account.
Logging on to your account
Now that you have a Docker Hub user account, you can login with the following command:
$ sudo docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
This will store your credentials in $HOME/.docker/config.json on the local Docker host.
You can logout as follows:
$ sudo docker logout
Thanks for visiting.