docker ps -a
时间: 2023-05-28 11:06:26 浏览: 121
This command is used to list all containers, including stopped ones. It displays information such as the container ID, image used to create the container, command run in the container, status, creation time, and ports exposed.
Example output:
```
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4b4c6fbd5b17 nginx:latest "/docker-entrypoint.…" 2 hours ago Exited (0) 2 hours ago elegant_mendeleev
f1cdd5b5a4cf postgres:latest "docker-entrypoint.s…" 4 days ago Exited (0) 4 days ago pensive_hoover
c2b2d9a9cfeb redis:latest "docker-entrypoint.s…" 2 weeks ago Exited (137) 2 weeks ago nostalgic_poincare
```
阅读全文