Docker commit镜像
作者:互联网
commit镜像
docker commit 提交容器成为一个新的副本
# 命令和git原理类似
docker commit -m="提交的描述信息" -a="作者" 容器id 目标镜像名:[TAG]
实战测试
C:\Users\48358>docker commit -m="提交新的镜像信息" -a="teanxo" 49dc3fbf02b4 mysqltest:1.0
sha256:e4b99ad2889437ac5b8f58c3339e06b7db4baedc0f2f0b6c8d08f23d913cff1d
C:\Users\48358>docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
mysqltest 1.0 e4b99ad28894 6 seconds ago 521MB
mysql 8.0 667ee8fb158e 7 days ago 521MB
mysql latest 667ee8fb158e 7 days ago 521MB
标签:ago,1.0,521MB,镜像,commit,Docker,docker 来源: https://www.cnblogs.com/teanxo/p/16112117.html