Diagnosing Swarm Issues fixed the issue for me. Turns out, apt-get install docker.io install a docker version that doesn’t support docker swarm mode. Following the instruction found at https://docs.docker.com/engine/installation/linux/ubuntu/ fixed it for me