- 博客(1)
- 收藏
- 关注
转载 docker 将容器打包成镜像并传输至其他服务器部署
1. 从容器创建/拉取一个新的镜像docker pull : 拉取新的镜像docker commit :从容器创建一个新的镜像 docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]OPTIONS说明:-a :提交的镜像作者;-c :使用Dockerfile指令来创建镜像;-m :提交时的说明文字;-p :在commit时,将容器暂停。例1docker commit -a "runoob.com" -m "my apache" a404
2022-05-16 11:13:10
1643
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人