Using Flocker with Docker Swarm Mode (>= 1.12)

189 views
Skip to first unread message

Crispin Veall

unread,
Oct 17, 2016, 7:31:58 AM10/17/16
to flocker-users
Hi,
I have a swarm set up using Docker Swarm Mode (I'm talking 1.12 Swarm Mode, NOT old-style Swarm).  I can find docs on using Docker with Swarm, but not Swarm Mode.

I have so far installed the Flocker control service on one node, and configured the Flocker agents on all nodes.  I have also started the Flocker dataset and container agents and Docker plugin.  From then on I seem to be left hanging.  There are examples on how to run a single docker container, but nothing on using 'service create' type syntax.

Googling has failed me, so has someone else deduced how to use Flocker with Docker in Swarm Mode?  Please?

Luca Gioppo

unread,
Mar 22, 2017, 10:48:28 AM3/22/17
to flocker-users
I'm also trying to make it work.
I'm using docker 17.03.0-ce on CentOS 7

I have 4 VM:
1 Master with the flocker controller and the swarm manager
2 nodes
1 client machine with the flocker-cli and docker compose.

I'm tryint to use the docker compose to run stacks on swarm and it seems that folcker get used accordingly the only proble is that in my test I'm using the loopback and I use the tutorial from the flocker website, but I had to change the docker-compose examples to V3 since there are some changes that make things go wrong.
I run all the 2 service in node1 and all works, the volume gets created.
I move the services on node2 and there is the problem in the DB not being created.

Could it be to the fact that using the loopback swarm ask for the volume the cluster give it, but the data being on the loopback cannot be used on node2 since it was created on node1?

Thanks
Reply all
Reply to author
Forward
0 new messages