|
提交
docker commit命令提交
-m : 说明更改
-a : 更改作者
b9d598059fa9:更改的容器ID
sinatra:v2 :提交到sinatra image ,v2是tag;
- zane@zane-V:~$ docker commit -m "Added json gem" -a "zane" b9d598059fa9 sinatra:v2
- sha256:7902e96eb0144d64577348c02ff8accf939e5469c01df9a0911044122205b8c7
-
- zane@zane-V:~$ docker images
- REPOSITORY TAG IMAGE ID CREATED SIZE
- sinatra v2 7902e96eb014 About a minute ago 471.2 MB
- zane0306/docker-whale latest d09756981eeb 30 hours ago 275.1 MB
- centos latest 67591570dd29 11 days ago 191.8 MB
- ubuntu latest 104bec311bcd 11 days ago 129 MB
- hello-world latest c54a2cc56cbb 5 months ago 1.848 kB
- docker/whalesay latest 6b362a9f73eb 19 months ago 247 MB
- training/webapp latest 6fae60ef3446 19 months ago 348.8 MB
- training/sinatra latest 49d952a36c58 2 years ago 447 MB
复制代码
|
|