How to list containers in Docker
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: There's a command to list images, docker images , but there doesn't seem to be a corresponding docker containers . Other than becoming root and looking into /var/lib/docker there doesn't seem a way to do that. Am I missing something? Is that something one isn't supposed to do? 回答1: To show only running containers use the given command: docker ps To show all containers use the given command: docker ps -a To show the latest created container (includes all states) use the given command: docker ps -l To show n last created containers (includes