Error response from daemon: rpc error: code = DeadlineExceeded desc = context deadline exceeded

all of the sudden, docker swarm is acting up, i cannot start containers and getting following error while trying to get join-token:

# docker swarm join-token manager
Error response from daemon: rpc error: code = DeadlineExceeded desc = context deadline exceeded
# 
# docker version
Client:
 Version:           18.06.0-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        0ffa825
 Built:             Wed Jul 18 19:09:33 2018
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.0-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       0ffa825
  Built:            Wed Jul 18 19:07:38 2018
  OS/Arch:          linux/amd64
  Experimental:     false
# 

Please advise.

Did you figure out what was the problem?

@fsejoseph

  • swarm leave --force
  • swarm init
  • swarm join

Hi please help, am facing the same problem in all my clusters.