garethr / puppet-docker-swarm-example

An example using Puppet to launch a Swarm cluster using Consul
30 stars 15 forks source link

Doesn't seem to work #2

Closed stwomack closed 4 years ago

stwomack commented 9 years ago

This is with the default 2 nodes, swarm-1 and swarm-2:

root@swarm-1:~# docker -H tcp://localhost:3000 info Containers: 0 Images: 0 Role: primary Strategy: spread Filters: affinity, health, constraint, port, dependency Nodes: 0 CPUs: 0 Total Memory: 0 B Name: 812c9cb39e09

stwomack commented 9 years ago

root@swarm-1:~# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 812c9cb39e09 swarm "/swarm manage consu 5 minutes ago Up 5 minutes 0.0.0.0:3000->2375/tcp goofy_darwin
bdfe68751e97 swarm "/swarm join --addr= 5 minutes ago Up 5 minutes 2375/tcp compassionate_perlman

rooprob commented 8 years ago

The solution I found was to make some updates to the project - upgrade kernel (I have success on 4.2), tweak the modules and add some additional parameters. I'll push up the updates when I've finished....

BarnumD commented 7 years ago

Is this document even still valid in docker 17.05? Does swarm still operate as containers? I thought it was more built in now.

Xtigyro commented 5 years ago

Is this document even still valid in docker 17.05? Does swarm still operate as containers? I thought it was more built in now.

I've fixed the code in a fork of mine and also used the much newer versions of the different components. - https://github.com/Xtigyro/puppet-docker-swarm-example

Xtigyro commented 5 years ago

Also - I've created a PR: https://github.com/garethr/puppet-docker-swarm-example/pull/3.