Closed jamesprior closed 6 years ago
In the event of a re-run after failure, leave the swarm before trying to re-join.
I was getting docker info output that looked like this:
root@manager-02:~# docker info Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 4 Server Version: 17.12.0-ce Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog Swarm: error NodeID: Error: rpc error: code = DeadlineExceeded desc = context deadline exceeded Is Manager: false Node Address: 10.136.117.77
The actual problem seems to be something else but this is a small change at least to try re-joining.
Thanks for the pr. I will try out this change shortly, but it looks ok.
Hey, thanks for reviewing this and pulling it in! I hope it saves someone some time
In the event of a re-run after failure, leave the swarm before trying to re-join.
I was getting docker info output that looked like this:
The actual problem seems to be something else but this is a small change at least to try re-joining.