19

What is the meaning and the cause of error "Context deadline exceeded or context deadline unknown" when using docker, with docker stack deploy? I see many posts with this error in differents environment and contexts. But i m not able to understand how to avoid this problem.

When i have networks error i know what to do, but not in theses cases.

mik3fly-4steri5k
  • 712
  • 3
  • 15
  • 32
  • 8
    It's a fairly generic error, from tools implemented in Go, saying "something took to long". It frequently means there is a network-configuration problem and not a code error. Do you have a specific case where this is coming up, ideally including a [mcve]? – David Maze Apr 12 '21 at 14:02
  • not really, this happens when a do a docker stack deploy within an existing swarm. Not often, but sometimes. What i want to know, if there is a solution or a way that i can put to retry my deploy stack or how to resolve the problem automatically before retrying. – mik3fly-4steri5k Apr 12 '21 at 15:16

1 Answers1

2

In my case I faced this message when DNS setting was wrong. Changing the DNS setting to 1.1.1.1 solved the issue.

xax
  • 63
  • 5