Docker Community Forums

Share and learn in the Docker community.

Broken swarm, cannot get past errors after errors


(Pquerner) #1

Hello,

I am closely following https://www.blog.labouardy.com/docker-swarm-networking-and-dynamic-reverse-proxy/ to get my first goal in running a little swarm.

It almost worked, I could reach traefik webpage but it didnt show any worker nodes, so I threw everything away and started all over.
But now, all I get is the message

Error response from daemon: This node is not a swarm manager. Use “docker swarm init” or “docker swarm join” to connect this node to swarm and try again

I even get this after completely removing docker (apt remove --purge docker-ce) and removing /var/lib/docker.

Example command

docker network create --driver overlay appnet

Then I found another script I could follow (https://blog.ruanbekker.com/blog/2018/10/23/build-a-traefik-proxy-image-for-your-raspberry-pi-on-docker-swarm/), but its the same deal.

Could anyone help me figuring this out?
I want to completely start over since I know something didnt work quite well.

Info:

docker-compose --version
docker-compose version 1.23.1, build b02f1306

docker --version
Docker version 18.09.0, build 4d60db4

docker-machine --version
docker-machine version 0.14.0, build 89b8332

docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 18.09.0
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 local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: c4446665cb9c30056f4998ed953e6d4ff22c7c39
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: fec3683
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.15.0-39-generic
Operating System: Ubuntu 18.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.701GiB
Name: honeycomb
ID: PVLO:3XEC:DPLZ:ACJM:UQVW:PA4K:VCMI:HPBU:TP25:LYV4:5MME:E7UP
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: h_ttps://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine


(Muhammad Haris Shafiq) #2

Hey! thats not a big deal.just enter into shell to your manager node or you can use
docker- machine ssh <manager’s name> "docker node ls "
to verify manager node is working fine