详情参考 官方文档
1、使用
docker ps [OPTIONS]
2、配置(OPTIONS)
Name, shorthand | Default | Description |
---|---|---|
–all , -a | Show all containers (default shows just running) | |
–filter , -f | Filter output based on conditions provided | |
–format | Pretty-print containers using a Go template | |
–last , -n | -1 | |
–latest , -l | Show the latest created container (includes all states) | |
–no-trunc | Don’t truncate output | |