向 Docker Hub 上传(upload)自建映像(self image)

好风 发表于 2017-06-04T02:05:03.502841Z
引用地址:https://plus.ooclab.com/note/article/1370

对于 public image 我们可以上传到 hub.docker.com

步骤

export DOCKER_ID_USER="username"

登录 docker hub

$ 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: gwind
Password: 
Login Succeeded

tag image

docker tag my_image $DOCKER_ID_USER/my_image

push image

docker push $DOCKER_ID_USER/my_image