Docker官方仓库
先去官网注册一个账号
Docker Hub --- https://hub.docker.com
登陆
# dockerlogin
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: pmgame
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
登出
# dockerlogout
Removing login credentials for https://index.docker.io/v1/
上传镜像
# dockertag hello-world pmgame/hello-pm:v1
# docker push pmgame/hello-pm:v1
The push refers to repository [docker.io/pmgame/hello-pm]
9c27e219663c: Mounted from pmgame/pmimage
v1: digest: sha256:90659bf80b44ce6be8234e6ff90a1ac34acbeb826903b02cfa0da11c82cbc042 size: 525
搜索镜像(刚上传的镜像,要等待一段时间)
#docker search hello-pm
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
pmgameboss/hello-pm 0

浙公网安备 33010602011771号