DokcerHub
1、dockerhub 注册自己的dockerhub账号。
2、在服务器上提交自己的镜像。
首先当然是先登录自己的服务器上的dockerhub
[root@VM-0-16-centos _data]# 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
通过 docker tag 镜像id 名称:版本号,来修改镜像版本号,这样才能提交
发布镜像到dockerhub:docker push wucanhong/diytomcat:1.0