我未使用Docker Swarm,并且每次运行docker inspect some_container
时,都会在syslog中收到以下错误:
dockerd[2019]: time="..." level=error \
msg="Handler for GET /v1.38/secrets returned error: \
This node is not a swarm manager. \
Use \"docker swarm init\" or \"docker swarm join\" to \
connect this node to swarm and try again."
我如何防止这种行为?
最佳答案
如果要从Docker 1.13检查容器,请检查“每个对象类型”。
从docker container inspect doc:
docker container inspect some_container
这是一个已知的错误,请查看this issue
还提到here:
@mfilotto this should be fixed by #29246, which is part of docker 1.13.1. The errors are safe to ignore though.
As a workaround, you can use docker inspect --type=container foo if you want to inspect a container, etc. Docker 1.13 adds inspect "per object type", e.g. docker image inspect foo, docker container inspect foo, etc
I'll close this issue, because this should be fixed, but feel free to comment after I closed
关于docker - 摆脱Docker的以下错误:GET/v1.38/nodes的处理程序返回错误:该节点不是群集管理器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51727499/