Docker将容器打包成镜像
将容器打包成镜像
docker commit -a "lijia" -m "create huiran img" 009191a43bda huiran:v1
#存成tar文件方便迁移
docker save - o xx.tar xxx
docker commit -a "wscore" -m "create wscore img" 050345f2961e wscore:v1
查询镜像创建时间
date -d @$(docker inspect -f '{{.Created}}' <image_name_or_id>)
评论区