docker - How do I push an image to my NON-public repo in dockerhub -
how push non-public repository on dockerhub?
suppose account called “myaccount” , (non-public) repo called “myrepo”. in repo page says, “pull repository: docker pull myaccount/myrepo”.
e.g., suppose have image called “myrepo/myimage”. have logged account (sudo docker login
), , tried,
sudo docker push docker.io/myrepo/myimage sudo docker push myrepo/myimage sudo docker push myaccout:myrepo/myimage sudo docker push myaccount/myrepo:myrepo/myimage sudo docker push myaccount/myrepo:myimage
etc.
none of these work. errors "invalid repository name", or succeeds says, "do want push public registry?" - , not - want push non-public dockerhub repo ("myaccount/myrepo").
please tag image first myaccount/myrepo:<tag-name>
locally using
docker tag <your-local-image> myaccount/myrepo:<tag-name>
, try
docker push myaccount/myrepo:<tag-name>
note give valid name <tag-name> v1, v2, etc.
Comments
Post a Comment