Graphical interfaces for Swarm

At the moment of writing, Swarm mode is so young, that the existing Docker graphical user interfaces support is yet to come or is in progress.

Shipyard

Shipyard (https://shipyard-project.com/), which has a nice support for Swarm (v1) operations, is now updated to use Swarm mode. At the of writing (August 2016), there is a 1.12 branch on Github, that makes this workable.

At the time this book will be published, probably a stable version will be available for automated deployment already. You can take a look at the instructions at https://shipyard-project.com/docs/deploy/automated/.

It will be something similar to going in SSH to the leader manager host and run a one liner, such as:

curl -sSL https://shipyard-project.com/deploy | bash -s

In case we still need to install a specific non-stable branch, download it from Github to the leader manager host and install Docker Compose.

curl -L 
    https://github.com/docker/compose/releases/download/1.8.0/docker-
    compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose && 
    chmod +x /usr/local/bin/docker-compose

And finally start with compose:

docker-compose up -d < docker-compose.yml

This command will bring up a number of containers, which, in the very end, by default expose port 8080 so that you can connect to the public manager IP at port 8080 to get into the Shipyard UI.

Shipyard

As you can see in the following screenshot, Docker Swarm features are already supported in UI (there are Services, Nodes, and so on.), and operations, such as Promote, Demote , and so on, which we outlined in this chapter are available for each node.

Shipyard

Portainer

An alternative UI supporting Swarm Mode, and our preferred choice,  is Portainer (https://github.com/portainer/portainer/).

Deploying it is as easy as starting it as a container on the leader manager:

docker run -d -p 9000:9000 -v /var/run/:/var/run 
    portainer/portainer
Portainer

The UI has the expected options, including nice list of templates for quickly launching containers, such as MySQL or a private registry, Portainer supports Swarm services, with -s option when launching it.

Portainer, at time of writing, is about to launch the UI authentication feature, which is the first step towards full roles based access control, which is due in the start of 2017. Later the RBAC will be extended to support Microsoft Active Directory as the directory source. Further, Portainer will also support multi-cluster (or multi-host) management by end of 2016. Additional features being added at the start of 2017 are Docker Compose (YAML) support, and private registry management.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset