Victor Vieux f8245da596 fix tests
2014-12-03 12:56:29 +00:00
2014-12-03 12:28:05 +00:00
2014-11-21 22:18:09 +00:00
2014-11-18 02:01:04 +00:00
2014-12-03 12:56:29 +00:00
2014-11-18 23:04:11 +00:00
2014-11-18 21:47:00 +00:00
2014-11-18 21:40:38 +00:00
2014-11-20 23:56:42 +00:00
2014-11-18 03:19:37 +00:00
2014-12-03 11:47:55 +01:00
2014-11-20 23:59:53 +00:00
2014-12-03 13:51:09 +01:00

Swarm: a Docker-native clustering system

Docker Swarm Logo

swarm is a simple tool which controls a cluster of Docker hosts and exposes it as a single "virtual" host.

swarm uses the standard Docker API as its frontend, which means any tool which speaks Docker can control swarm transparently: dokku, fig, krane, flynn, deis, docker-ui, shipyard, drone.io, Jenkins... and of course the Docker client itself.

Like the other Docker projects, swarm follows the "batteries included but removable" principle. It ships with a simple scheduling backend out of the box. 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.

Installation

######1 - Download the current source code.

go get github.com/docker/swarm

######2 - Compile and install swarm

go install github.com/docker/swarm

Example usage

# create a cluster
$ swarm create
6856663cdefdec325839a4b7e1de38e8

# on each of your nodes, start the swarm agent
$ swarm join --token=6856663cdefdec325839a4b7e1de38e8 --addr=<docker_daemon_ip1:4243>
$ swarm join --token=6856663cdefdec325839a4b7e1de38e8 --addr=<docker_daemon_ip2:4243>
$ swarm join --token=6856663cdefdec325839a4b7e1de38e8 --addr=<docker_daemon_ip3:4243>
...

# start the manager on any machine or your laptop
$ swarm manage --token=6856663cdefdec325839a4b7e1de38e8 --addr=<swarm_ip:4243>

# use the regular docker cli
$ docker -H <swarm_ip:4243> info
$ docker -H <swarm_ip:4243> run ... 
$ docker -H <swarm_ip:4243> ps 
$ docker -H <swarm_ip:4243> logs ...
...

# list nodes in your cluster
$ swarm list --token=6856663cdefdec325839a4b7e1de38e8
http://<docker_daemon_ip1:4243>
http://<docker_daemon_ip2:4243>
http://<docker_daemon_ip3:4243>

Creators

Andrea Luzzardi

Victor Vieux

Code and documentation copyright 2014 Docker, inc. Code released under the Apache 2.0 license. Docs released under Creative commons.

Description
No description provided
Readme Apache-2.0 896 MiB
Languages
Markdown 97.2%
HTML 1.8%
CSS 0.4%
JavaScript 0.2%
Go 0.1%
Other 0.1%