Docker Swarm is native clustering for Docker. It turns a pool of Docker hosts into a single, virtual host.
Swarm serves the standard Docker API, so any tool which already communicates with a Docker daemon can use Swarm to transparently scale to multiple hosts: Dokku, Compose, Krane, Flynn, Deis, DockerUI, Shipyard, Drone, Jenkins... and, of course, the Docker client itself.
Like other Docker projects, Swarm follows the "batteries included but removable" principle. It ships with a simple scheduling backend out of the box, and as initial development settles, an API will develop to enable pluggable backends. The goal is to provide a smooth out-of-box experience for simple use cases, and allow swapping in more powerful backends, like Mesos, for large scale production deployments.
Full documentation is available here.
You can download and install from source instead of using the Docker image.
Ensure you have golang and git client installed (e.g. apt-get install golang git
on Ubuntu).
You may need to set $GOPATH
, e.g mkdir ~/gocode; export GOPATH=~/gocode
.
The install swarm
binary to your $GOPATH
directory.
go get -u github.com/docker/swarm
From here, you can follow the instructions in the main documentation,
replacing docker run swarm
with just swarm
.
We welcome pull requests and patches; come say hi on IRC, #docker-swarm on freenode.
Andrea Luzzardi
Victor Vieux
Code and documentation copyright 2014-2015 Docker, inc. Code released under the Apache 2.0 license.
Docs released under Creative commons.