2.11 移除容器
# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS f23598b6544d mytomcat:1.0 "/root/run.sh" 8 minutes ago Exited (137) # docker rm f235 f235 # docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS2.12 移除镜像
# docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE mytomcat 1.0 65c88ec597e0 31 minutes ago 514.4 MB docker.io/centos 7.2.1511 83ee614b834e 9 weeks ago 194.6 MB # docker rmi 65c8 Untagged: mytomcat:1.0 Deleted: 65c88ec597e04812ec3b06b7749578bebcae3aa3d735b565ed25db6818d9d7f3 # docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE docker.io/centos 7.2.1511 83ee614b834e 9 weeks ago 194.6 MB更多Docker相关教程见以下内容:
Ubuntu 16.04 服务器上配置使用 Docker
在 Ubuntu 15.04 上如何安装Docker及基本用法