[英]Docker error “Could not attach to network <name>: context deadline exceeded.”
I'm trying to run a container that connects to an overlay network in my docker swarm, but I get the following error:我正在尝试在我的 docker 群中运行一个连接到覆盖网络的容器,但出现以下错误:
$ docker run --rm --network mystack_default alpine
docker: Error response from daemon: Could not attach to network mystack_default : context deadline exceeded.
The error context deadline exceeded
is a go timeout - so it seems like something must be locking / blocking my container from joining this network. context deadline exceeded
是 go 超时 - 所以似乎必须锁定/阻止我的容器加入该网络。 How can I figure out what it is?我怎样才能弄清楚它是什么?
The swarm cluster is a dev cluster that consists of a single node, the issue appears intermittent but lasts many minutes when it happens. swarm 集群是一个由单个节点组成的开发集群,问题似乎是间歇性的,但在发生时会持续几分钟。 The docker version is 18.09.2 - if it matters?
docker 版本是 18.09.2 - 如果重要吗?
try to set the node to active:尝试将节点设置为活动:
docker node update --availability active MYNODE
and then try again然后再试一次
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.