Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Doc with the use of swarm binary instead of docker run swarm ? #1245
I would like to use docker on arm infrastructure ; thus I cannot use the swarm image as is. So I decided to compiled swarm on my cubietruck / raspberry.
On this issue #797, it is said it's better to run swarm binary directly than a daemon docker. As mentionned in the doc , it says 'just replace docker run swarm by swarm".
I'm not sure on how it should be done and what is part of the docker command and what can be used for swarm command.
By any chance, are the some documents from which I could start ?
In our case that we are trying to run
It's a little bit clearer but I think I'm not clear yet with the process. Maybe there is or I imagine too much inception there.
So far, I have 2 cubietrucks and 1 raspberri with docker 1.8.2 installed on all of them. Swarm is also compiled on each of them (not in a container)
What I did so far without success relying on  :
But seems it failed ; I don't have the log with me now to provde more details. I'm also sceptical about the swarm binary. Should it be run as a daemon to some extend or is it just a one time command thant interact with the docker daemon and then the latter will keep the information and do some stuff ?
An alternative question could be : could I use the docker-machine doc  but is it possible in an ARM context? I thought it was not as the --swarm* options would havec fetched the 64 bits swarm image.
Thinking about it during my computation to office and re-reading the docs, shouldn't it be more:
I think I confused the notion of daemon with the notion of master and so when I was doing the swarm join, I was trying to join the supposed to be master-node.
Will try it tonight at home.
@nsteinmetz that looks good. To reinforce, each node needs to have the docker daemon running on it. Then each node needs to run swarm join. Then the manager/master needs to be started somewhere, either on a node or even a remote computer, as long as it has network connectivity to all nodes.
Thanks @MHBauer for the confirmation.
I did it as at the end, I can do:
But I cannot find the way to manage my cluster:
However, I could do it remotely with:
So is there a way to manage from a node using the swarm binary ?
Indded @MHBauer, thanks. I thought first that host would only accept an IP.
But this would work:
Hopefully it may be useful for someone else ; just need to make it run by supervisor so that I don't have to run it manually.