I’m trying to setup a Swarm with my Mac being the manger and my Fedora server a node agent.
I must admint that the docs are pretty good but has some gaps where I’ve might gone wrong. Here is what I did to setup the swarm
Here is what I did on my Fedora machine (ip=192.168.2.101)
$fedora> docker run --rm swarm create
7b48216c28.....
$fedora> docker run -d swarm join --addr=192.168.2.101:2375 token:7b48216c28....
Next (ip=192.168.2.6)
$Mac> docker run --rm swarm create
5e21aa75384....
$Mac> docker run -d -p 2375:2375 swarm manage token:5e21aa753
$Mac> docker -H tcp://localhost:2375 info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: swarm/1.2.5
Role: primary
Strategy: spread
Filters: health, port, containerslots, dependency, affinity, constraint
Nodes: 1
(unknown): token:5e21aa753...
└ ID:
└ Status: Pending
└ Containers: 0
└ Reserved CPUs: 0 / 0
└ Reserved Memory: 0 B / 0 B
└ Labels:
└ UpdatedAt: 2016-10-18T20:10:14Z
└ ServerVersion:
Plugins:
Volume:
Network:
Swarm:
NodeID:
Is Manager: false
Node Address:
Security Options:
Kernel Version: 4.4.24-moby
Operating System: linux
Architecture: amd64
CPUs: 0
Total Memory: 0 B
Name: 5519b2e29e21
Docker Root Dir:
Debug Mode (client): false
Debug Mode (server): false
No Proxy: *.local, 169.254/16
WARNING: No kernel memory limit support
From this I get the idea that the client (Fedora machine) doesn’t connect. I’ve tried to replace the ip address to the Mac ip but that didn’t help. Any help would be appreciated