swarm node异常,尝试 docker swarm leave -f 失败问题(Swarm node exception, failed to try docker swarm leave – F)

报错:Error response from daemon: context deadline exceeded

解决步骤:

systemctl stop docker.service
cd /var/lib/docker
mv swarm/ swarmXX
systemctl start docker.service
docker swarm join --token SWMTKN-1-xxxxx-yyyyy x.x.x.x:2377

原因:I DO NOT CARE

————————

报错:Error response from daemon: context deadline exceeded

Solution steps:

systemctl stop docker.service
cd /var/lib/docker
mv swarm/ swarmXX
systemctl start docker.service
docker swarm join --token SWMTKN-1-xxxxx-yyyyy x.x.x.x:2377

原因:I DO NOT CARE