Guide

A web UI for Docker Swarm

The docker CLI on a manager node tells you everything about a swarm, one command at a time. A web UI puts nodes, services and tasks on one screen that updates as tasks move, and lets teammates help without a shell on a manager.

Updated , for FleetOps v1.4.1.

From a manager node

What the UI replaces.

Swarm from the CLI
docker node ls
docker service ls
docker service ps my-stack_web
docker service logs -f my-stack_web

It works, but you rerun commands to see a rollout move, every person needs a shell on a manager, and nothing records who scaled what.

Swarm in FleetOps

Free in Community, under Apache-2.0.

  • One screen, live. An overview that leads with what needs attention, then nodes, services, tasks and a task visualizer, updated from the swarm's events.
  • Logs across tasks. A service's logs merged from all its tasks, in the same viewer as container logs.
  • Every node is a host. Open any node for its containers, logs, terminals, images and volumes.
  • Change it from the browser. Drain, promote and label nodes; create, edit, scale, redeploy, roll back and remove services; create secrets, configs and overlay networks.
  • Swarm stacks. Compose files deployed as Swarm services, with the whole deploy: block, written in the browser or synced from git. Each deploy reports progress per service and becomes a revision you can roll back to.
  • Roles limited to stacks, and an audit log of every change.

Connect a swarm

In Admin → Environments → Add environment, choose Docker Swarm. FleetOps gives you a key to store as a Docker secret on a manager and a stack file to deploy with docker stack deploy. It runs the agent on every node, now and as nodes join. Each agent dials out to FleetOps, so nodes open no port. The Swarm guide covers the details; Swarm autolock isn't supported.

Other tools that manage Swarm include Portainer and Swarmpit. FleetOps's difference is that Swarm sits in the same UI as plain Docker hosts and Kubernetes clusters, with roles and the audit log free.

Questions

Is there a web UI for Docker Swarm?

Yes. FleetOps shows a swarm's nodes, services, tasks, secrets, configs and networks live in the browser, and can change them: drain and promote nodes, scale, redeploy and roll back services, and deploy Compose files as Swarm stacks. Portainer and Swarmpit also manage Swarm.

How does FleetOps connect to a Docker Swarm?

You deploy one stack file that runs fleetops-agent on every node, including nodes that join later. Each agent dials out to the FleetOps server and proves its node with the node's Swarm certificate, and an admin confirms the swarm's root CA before any agent is trusted.

Can I limit who can change which Swarm stacks?

Yes. A role on a swarm can be limited to some stacks. The user then sees and acts on only those stacks' services, tasks, secrets, configs, networks and containers, on every page, feed and log.

Does FleetOps show stacks deployed with docker stack deploy?

Yes. Stacks deployed from the command line are listed too. Services changed outside their FleetOps stack are marked as drifted.

Read next