首先,你需要注册一个帐号。
想要上传的话首先要登录
[root@docker ~]# docker login
Username: fwc521
Password:
Email: 961769710@qq.com
WARNING: login credentials saved in /root/.docker/config.json
Login Succeeded
[root@docker ~]#
登录成功,接下来就可以了
[root@docker ~]# docker push fwc521/latest
Do you really want to push to public registry? [y/n]: y
The push refers to a repository [docker.io/fwc521/latest] (len: 0)
8be9f7652ab5: Pushed
fwc521 是我的帐号