docker - Docker ps 打印空列表
问题描述
如何查看正在运行的容器列表?
sh-4.2$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
sh-4.2$ docker rm filebeat
Error response from daemon: You cannot remove a running container 998f73f25e997ba9838df85e8a83b05df9f2c713580ac3e183655c8241e4e84b. Stop the container before attempting removal or force remove
我以为docker ps
是,但它显示一个空列表。
解决方案
推荐阅读
- c++ - 如何解压缩包含多个文件的 gzip?
- android - 如何在camerax中锁定曝光?
- java - 我不确定为什么我的输出总是返回 false
- c# - 图像上的点密度
- android-studio - 在 Android Studio 的所有项目文件中搜索文本的快捷方式是什么?
- asp.net-core - 如何从 ASP.NET Core 异常中间件返回 404?
- javascript - 客户端 POST 数据后未调用 Flask render_template()
- gradle - 使用 Gradle 在不同的 JVM 中并行执行 JUnit5 测试
- apollo - 如何使托管联合脱机工作?
- c# - 逐字字符串 c# "'a\\\' b'"