一、发布镜像到dockerHub
DockerHub
1、地址 https://hub.docker.com 注册并登入自己账号
2、在服务器上提交自己的镜像
#登入命令帮助
[root@172-0-0-2 ~]# docker login --help
Usage: docker login [OPTIONS] [SERVER]
Log in to a Docker registry.
If no server is specified, the default is defined by the daemon.
Options:
-p, --password string Password
--password-stdin Take the password from stdin
-u, --username string Username
3、登入完毕后就可以提交镜像,然后docker push