How to push a docker image to a private repository

后端 未结 9 1167
再見小時候
再見小時候 2020-11-29 14:21

I have a docker image tagged as me/my-image, and I have a private repo on the dockerhub named me-private.
When I push my me/my-image

9条回答
  •  广开言路
    2020-11-29 14:56

    Just three simple steps:

    1. docker login --username username

      • prompts for password if you omit --password which is recommended as it doesn't store it in your command history
    2. docker tag my-image username/my-repo

    3. docker push username/my-repo

提交回复
热议问题