Mission control for Docker
gattai
is a client for Docker with the orchestration workflow in mind.
It is based on docker/cli
so its commands are fully compatible with docker
.
Basically, gattai
can be a drop-in replacement for docker
client.
In addition, gattai
includes libmachine
for machine provisioning, codes from swarm
for built-in discovery management. It's planned to include libcompose
for service composition in future releases.
You can setup a Docker cluster with gattai
in just 4 steps.
$ gattai init
will initialize a Gattai repository to store workflow-related files.- Open and edit
provision.yml
as follows:
---
machines:
ocean:
driver: digitalocean
instances: 2
options:
digitalocean-access-token: $DIGITALOCEAN_ACCESS_TOKEN
digitalocean-region: sgp1
engine-install-url: "https://experimental.docker.com"
master:
from: ocean
$ gattai provision
will readprovision.yml
and prepare 3 machines,ocean-1
,ocean-2
andmaster
, for you.$ gattai cluster -m master ocean
will form a Docker cluster usingswarm
. Themaster
machine will be yourswarm
manager and set active.
After the cluster
command, you can now use gattai
docker commands to place containers on your cluster.
See the cast below for gattai
in action: