dockerdocker-registrydocker-push

How to push image to hub.docker.com instead of docker.io


I want to push my image to my repo located in hub.docker.com . When I run

docker push <hub-user>/<repo-name>:<tag>

It tries to push to docker.io but I wanted to push it to hub.docker.com as my repo has been created there. Could anyone please tell me how can I push image to hub.docker instead of docker.io

Thanks


Solution

  • They're the same thing.

    You browse the website and manage your account from Hub. You push and pull images to the docker engine with the registry.