15.发布镜像到DockerHub

1.地址 http://hub.docker.com/

2.确定账号可以登录

3.在我们服务器上提交自己的镜像

docker login --help

Log in to a Docker registry or cloud backend.
If no registry server is specified, the default is defined by the daemon.

Usage:
  docker login [OPTIONS] [SERVER] [flags]
  docker login [command]

Available Commands:
  azure       Log in to azure

Flags:
  -h, --help              Help for login
  -p, --password string   password
      --password-stdin    Take the password from stdin
  -u, --username string   username

Use "docker login [command] --help" for more information about a command.

4.登录完毕后就可以提交镜像了,就是docker push

docker login -u 用户名

docker push 用户名/应用名:版本号

# 自己发布的镜像尽量带上版本号
docker tag 镜像id 作者信息/应用名:版本号

ps: 提交的时候也是按照层级来进行提交的