gpt4 book ai didi

docker - 摆脱Docker的以下错误:GET/v1.38/nodes的处理程序返回错误:该节点不是群集管理器

转载 作者:行者123 更新时间:2023-12-02 18:38:08 25 4
gpt4 key购买 nike

我未使用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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com