Docker Login

docker login command allows you to login to docker.com. You need to login to docker before you can upload your own images to docker hub. This is also needed if you need to pull down a private image.

root@ok:~# 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.
Username: serverok
Password:
Login Succeeded
root@ok:~#

if you need to login to a different docker registery, for example your company docker registery, use

docker login IP_OR_HOST_OF_DOCKER_REGISTRY:PORT

To log off, use

Advertisement

docker logout

or

docker logout IP_OR_HOST_OF_DOCKER_REGISTRY:PORT

docker

Add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement