# -a :提交的镜像作者; # -c :使用Dockerfile指令来创建镜像; # -m :提交时的说明文字; # -p :在commit时,将容器暂停。 docker commit -a "author" -m "commit msg" {commitId} {name}:{tag} #docker commit -a "author" -m "commit msg" {commitId} author/myubuntu:v1
docker login
docker push author/myubuntu:v1
docker tag {imageId} {name}:{tag}
docker run --name nginx-text -p 9090:90 -d nginx
|