Hi Everybody,
I am having a problem while testing Swarm. Prior to creating this post I have search, and fond a similar issue, but could not solve mine with that one.
So here is the description of what I have done.
I have docker engine on my laptop and I have also created via docker-machine two other nodes. One in VirtualBox and one i VMWare v phere.
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
testhost - virtualbox Running tcp://192.168.99.100:2376 v1.10.2
vm-docker-machine - vmwarevsphere Running tcp://192.168.2.178:2376 v1.10.2
Create Token
[asantos@fosters ~]$ docker run --rm swarm create
7b913280576ec17928b9b14f9657cef9
Create Swarm manager on laptop
[asantos@fosters ~]$ docker run -d -P swarm manage token://7b913280576ec17928b9b14f9657cef9
a8bc404fc4cb60547f42bf7698ce630289d0c9908e3ef4722938552ec6d6b614
[asantos@fosters ~]$ docker ps --no-trunc
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a8bc404fc4cb60547f42bf7698ce630289d0c9908e3ef4722938552ec6d6b614 swarm "/swarm manage token://7b913280576ec17928b9b14f9657cef9" About a minute ago Up About a minute 0.0.0.0:32770->2375/tcp sleepy_torvalds
Create agent on testhost
[asantos@fosters ~ [testhost]]$ docker run -d swarm join --addr=$(docker-machine ip testhost):2376 token://7b913280576ec17928b9b14f9657cef9
1c90bdc51755c312655572acba162858697cd57c35628817112ee1510c03e80c
[asantos@fosters ~ [testhost]]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1c90bdc51755 swarm "/swarm join --addr=1" 12 seconds ago Up 10 seconds 2375/tcp elated_williams
Create agent on vm-docker-machine
[asantos@fosters ~ [vm-docker-machine]]$ docker run -d swarm join --addr=$(docker-machine ip vm-docker-machine):2376 token://7b913280576ec17928b9b14f9657cef9
0c9f31f7d1393842432adcfa9c48202bf3eae8e2a2752706be7a59e2b4310c1b
[asantos@fosters ~ [vm-docker-machine]]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0c9f31f7d139 swarm "/swarm join --addr=1" 5 seconds ago Up 4 seconds 2375/tcp nauseous_payne
Connectiong to Docker Swarm Manager
[asantos@fosters ~]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a8bc404fc4cb swarm "/swarm manage token:" About an hour ago Up About an hour 0.0.0.0:32770->2375/tcp sleepy_torvalds
[asantos@fosters ~]$ docker -H tcp://127.0.0.1:32770 info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: swarm/1.1.3
Role: primary
Strategy: spread
Filters: health, port, dependency, affinity, constraint
Nodes: 2
(unknown): 192.168.99.100:2376
â Status: Pending
â Containers: 0
â Reserved CPUs: 0 / 0
â Reserved Memory: 0 B / 0 B
â Labels:
â Error: (none)
â UpdatedAt: 2016-03-09T19:52:52Z
(unknown): 192.168.2.178:2376
â Status: Pending
â Containers: 0
â Reserved CPUs: 0 / 0
â Reserved Memory: 0 B / 0 B
â Labels:
â Error: (none)
â UpdatedAt: 2016-03-09T19:56:52Z
Plugins:
Volume:
Network:
Kernel Version: 4.3.6-201.fc22.x86_64
Operating System: linux
Architecture: amd64
CPUs: 0
Total Memory: 0 B
Name: a8bc404fc4cb
Deploying NGINX and error
[asantos@fosters ~]$ docker -H tcp://127.0.0.1:32770 run -d -P nginx
docker: Error response from daemon: No healthy node available in the cluster.
See 'docker run --help'.
Can anyone please help me debug what I am doing wrong?
I have tried it several ways, but I always end on the same error.
BR,
André