Docker 容器镜像推送到Hub Docker
1.把容器制作成镜像 //REPOSITORY: mynginx , TAG:v1.0 docker commit -m="nginx测试环境" -a="read" 8e82a3116d76 mynginx:v1.0 2.将你想要上传的镜像打标签 //bbf50057aab1 为IMAGE ID //read2020/my-private-repo 为hub docker的地址 //mynginx 为TAG名称 docker tag bbf50057aab1 read2020/my-private-repo:mynginx 3.推送镜像到hub docker docker push read2020/my-private-repo:mynginx 4.获取远程镜像库文件 //read2020/my-private-repo 为hub docker的地址 //mynginx 为TAG标签名称 docker pull read2020/my-private-repo:mynginx