[root@dyw219 newimg]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 746d04d25165 centos/httpd:index "/bin/bash" 5 seconds ago Up 4 seconds 0.0.0.0:8080->80/tcp myweb
[root@dyw219 newimg]# docker stop 746d04d25165 746d04d25165
[root@dyw219 newimg]# docker ps -a | grep 746d04d25165 746d04d25165 centos/httpd:index "/bin/bash" 11 minutes ago Exited (137) ...myweb
[root@dyw219 newimg]# docker rm 746d04d25165 746d04d25165
[root@dyw219 newimg]# docker rmi centos/httpd:index Untagged: centos/httpd:index Deleted: 5bf6f66639205293fe175fd0b866c94fe24f8f06f5838f857083c121a2e9eca8
[root@dyw219 newimg]# docker images centos/httpd REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE centos/httpd latest b4650389df73 7 months ago 258 MB