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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -