先google看看
还看到一个白话文概念
镜像的概念更多偏向于一个环境包,这个环境包可以移动到任意的Docker平台中去运行;而容器就是你运行环境包的实例。你可以针对这个环境包运行N个实例。换句话说container是images的一种具体表现形式。你也可以认为镜像与你装载操作系统iso镜像是一个概念,容器则可理解为镜像启动的操作系统。一个镜像可以启动任意多个容器,即可以装载多个操作系统。
You can see all your images with docker images whereas you can see your running containers with docker ps (and you can see all containers with docker ps -a).
# 查看所有镜像
[root@instance-kdx3xlko rpm]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
nginx latest 2622e6cca7eb 4 weeks ago 132MB
centos 7 b5b4d78bc90c 2 months ago 203MB
# 查看所有容器
[root@instance-kdx3xlko rpm]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
原文:https://www.cnblogs.com/CharmCode/p/13276751.html