1\将容器打包成镜像
docker commit -a "提交者姓名" -m "镜像信息" 要打包的容器名称或id 生成的镜像名称:标签
docker commit -a "XXX" -m "XXX1.2" ccad57c365b7 XXX/XXX:v1.2
2\登录dockerhub
3\发布镜像
docker push username/repository:tag
标签:hub,XXX,commit,镜像,docker,打包 From: https://www.cnblogs.com/HuangLiming/p/16707183.html