I run
$ docker stack deploy --with-registry-auth
this node is not a swarm manager. Use “docker swarm init” or “docker swarm join” to connect this node to swarm and try again
But when I run
$ docker swarm init
Error response from daemon: This node is already part of a swarm. Use “docker swarm leave” to leave this swarm and join another one.
Help, please?
$ docker -v
Docker version 18.06.1-ce, build e68fc7a
$ uname -a
Linux sks06mpbl001 3.10.0-862.el7.x86_64 #1 SMP Wed Mar 21 18:14:51 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux
You problem is not “Docker stack deploy –with-registry-auth results”. Your problem starts on the cluster’s consensus level:
Probably you filesytem under /var/lib/docker ran full and your raft transaction log is messed up. Free up some space and cross your fingers that other manager nodes will “repair” the broken node. If the other managers are affected as well or this is your own manager: prepare yourself to delete the swarm and re-initiate it from zero again.