Ryabchenko Alexander
Ryabchenko Alexander

Reputation: 12390

Docker: Error response from daemon: attaching to network failed

I have production docker swarm instalation

Im my CI I have regular launch of

docker run --network prod_default ...

Sometimes it fails with error

docker: Error response from daemon: attaching to network failed, make
sure your network options are correct and check manager logs: context
deadline exceeded.

Any ideas about reason ? or how to fix it?

Upvotes: 3

Views: 3268

Answers (2)

user4699862
user4699862

Reputation:

I might be a bit late but make sure the ENGINE VERSION is the same for both of your nodes

You can check the version with:

sudo docker node ls

Upvotes: 1

LinPy
LinPy

Reputation: 18578

set your all nodes to active state:

docker node update --availability active node02

see more here

Upvotes: 1

Related Questions