$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c4108e183564 learn/ping:latest "ping www.baidu.com" 15 hours ago Up 2 hours trusting_morse
CONTAINER ID:此为简略形式,ID的前16位。若要查询完整的CONTAINER ID可通过命令
$ sudo docker ps --no-trunc
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c4108e183564b19384a229b2b0f7e43a29f265260045c59b3e9e875b64a6e35a learn/ping:latest "ping www.baidu.com" 15 hours ago Up 2 hours trusting_morse
IMAGE:镜像全名
COMMAND:执行命令的内容
CREATED:容器创建时间
STATUS:容器状态,其中Exited (137) 16 seconds ago为16秒前停止;Up 2 hours为2小时前启动
PORTS:端口信息
NAMES:容器别名,可以在创建容器时用--name参数给容器起一个别名