docker 保存更改的镜像:
保存更改的镜像:docker:/root# docker commit -m "centos_with_nettools" -a "scan" c0895b3b9477centos_6.5_net:scandocker:/root# docker psCONTAINER IDIMAGECOMMAND
·
<pre name="code" class="ruby">保存更改的镜像:
docker:/root# docker commit -m "centos_with_nettools" -a "scan" c0895b3b9477 centos_6.5_net:scan
docker:/root# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
382cdd674040 centos_6.5_net:scan "/bin/bash" 4 minutes ago Up 4 minutes nostalgic_fermi
ec430386e30c centos-6-x86-template:zjzc "/bin/bash" 21 minutes ago Up 21 minutes hungry_pare
c0895b3b9477 blalor/centos "/bin/bash" 18 hours ago Up 18 hours loving_meitner
40d30fb0fc60 blalor/centos "/bin/bash" 18 hours ago Up 18 hours admiring_cray
c0dfbb37f841 centos "/bin/bash" 19 hours ago Up 19 hours fervent_ardinghelli
docker:/root# docker commit -m "zjzc_centos-6.5" -a "zjzc" 382cdd674040 centos_6.5:zjzc
docker:/root# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
centos_6.5 zjzc a05f15a89c8d 20 seconds ago 924 MB
-m, --message= Commit message
-a, --author= Author (e.g., "John Hannibal Smith <hannibal@a-team.com>")
更多推荐
已为社区贡献13条内容
所有评论(0)