cdc@cdcs-MacBook-Pro / % docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9fce498cd640 tomcat "catalina.sh run" About an hour ago Up About an hour 0.0.0.0:3355->8080/tcp test_tomcat
如果docker ps无法查看,可以选择通过:docker ps -a,查看运行过的容器信息
cdc@cdcs-MacBook-Pro / % docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b210ce86a1e6 5c8857d636ba "catalina.sh run" 9 minutes ago Up 9 minutes 0.0.0.0:3355->8080/tcp my_tomcat
4d374f83236c 5c8857d636ba "catalina.sh run" 10 minutes ago Exited (130) 10 minutes ago exciting_spence
9fce498cd640 tomcat "catalina.sh run" About an hour ago Exited (143) 16 minutes ago test_tomcat
cc2e021c959a nginx "/docker-entrypoint.…" 2 hours ago Exited (0) 2 hours ago test_nginx
e0108f21b135 centos "/bin/bash" 2 hours ago Exited (0) 2 hours ago dreamy_leavitt