Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用其图形界面时如何/在哪里查看 Portainer 运行的命令?
例如,当我启动一个现有容器时,我想知道它是如何做到的。就像在 Jetbrain 的 IDE 中显示 git 命令的日志时一样。
Portainer 不直接运行类似的命令docker ps,而是调用类似 docker REST api 的命令GET /api/endpoints/1/docker/containers/json?all=1。如果你想看到这个,你可以用例如wireshark嗅探网络“docker0”上的流量。
docker ps
GET /api/endpoints/1/docker/containers/json?all=1