如何在Docker.io中列出容器? [英] How do you list containers in Docker.io?

查看:152
本文介绍了如何在Docker.io中列出容器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个命令来列出图片, docker images ,但似乎没有相应的 docker容器

There's a command to list images, docker images, but there doesn't seem to be a corresponding docker containers.

除了成为root,并查看 / var / lib / docker 似乎没有办法要做到这一点。我错过了什么吗?这是不应该做的吗?

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?

推荐答案

只显示运行容器使用:

docker ps

所有容器都使用:

docker ps -a

这篇关于如何在Docker.io中列出容器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆