Docker image push 到docker hub
先基于一个已经存在的image创建一个container并且进入
docker run -dit alpine sh docker ps docker attach 62
在container中更新环境做些改变
然后commit这个新的image
docker commit -m "MESSAGE" containerID NewImageName docker commit -m "Update image" 620 nani/alpine-git
打上tag
docker tag nani/alpine-git:latest nani/alpine-git:v1.0
推送到docker hub
docker login docker push nani/alpine-git:v1.0