首页 > 其他 > 详细

docker commit

时间:2017-08-04 14:50:22      阅读:357      评论:0      收藏:0      [点我收藏+]

命令:docker commit

[root@iZ943kh74qgZ ~]# docker commit --help

Usage:    docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]

Create a new image from a containers changes

Options:
  -a, --author string    Author (e.g., "John Hannibal Smith <hannibal@a-team.com>")作者与邮箱
  -c, --change list      Apply Dockerfile instruction to the created image使用dockerfile文件系统指令来创建镜像。
      --help             Print usage
  -m, --message string   Commit message提交的信息
  -p, --pause            Pause container during commit (default true)

当容器里的内容改变时,创建一个新的镜像。

 

docker commit

原文:http://www.cnblogs.com/gorgage/p/7285054.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!