Skip to Content
Skitflow

Docker Swarm

Manage a Docker Swarm cluster from Skitflow. Services, nodes, volumes, secrets and configs, networks, a live service map and per-container metrics.

When you run Skitflow across multiple servers as a Docker Swarm cluster, the Swarm page is where you operate that cluster. It reads live state from the Swarm manager and lets you act on it: scale or roll back services, drain nodes, manage volumes, secrets, configs and overlay networks, and watch per-container metrics, without wiring up an external monitoring stack first.

The Swarm page is self-hosted only. The /dashboard/swarm page is unavailable on Skitflow Cloud.

Skitflow Swarm overview with active nodes and manager status

The page has these tabs: Overview, Services, Nodes, Cluster (owner and admin only), Volumes, Secrets & Configs, Containers, Service Map and Swarm Networks. A link such as /dashboard/swarm?tab=services opens a specific tab.

Members who are not owner or admin need the docker permission (or the legacy Docker access flag) to open the page. See Permissions for what each action requires.

Overview

The overview shows the cluster health baseline:

  • Total, active, and manager node counts.
  • Manager or worker role per node.
  • TLS readiness and scheduling availability.
  • Engine version, CPU, memory, and node IP.
  • Shortcuts to node configuration and services.

Use it first when a deployment is slow, a node disappears, or a service is not reaching the expected replica count.

Services

The Services tab lists every Swarm service on the manager, grouped by stack. Each service carries a class badge:

ClassMeaning
PlatformServices Skitflow runs for itself. They cannot be changed from here.
ApplicationServices that belong to a Skitflow application or Compose stack.
ExternalAny other service in the cluster.

Filter by name or class. Columns show mode, replicas, image, published ports and update state. Open a service to see its live configuration:

  • Tasks: task history with node, state and error.
  • Logs: the last 200 lines by default, up to 2000. For a live tail, open the container on the Containers tab.
  • Environment variable names only. Values are masked and never sent to the browser.
  • Networks, mounts, placement constraints, resource limits and labels.

From the row menu you can:

ActionWhat it does
Force updateRe-deploys the service's tasks (docker service update --force).
Roll backReturns the service to its previous version. Disabled when there is no previous version.
ScaleSets the replica count from 0 to 1000. Not available for services in global mode, where replicas equal the node count.
RemoveDeletes the service. You confirm by typing the service name.

Platform services accept no changes. Application and Compose services accept only Force update; scale, roll back and remove them from the application page so Skitflow's own record stays correct. Use the row menu's Open application link to get there.

Nodes

The Nodes tab shows each node's hostname, role (Manager, Worker, Leader), availability (Active, Paused, Draining), status, engine version, task count and labels. The node that runs Skitflow carries a Runs Skitflow badge. A node that is not linked to a managed server shows Not linked to a managed server.

From the row menu:

  • Change availability: Active accepts new tasks; Pause keeps existing tasks but schedules no new ones; Drain moves every task to the rest of the cluster.
  • Change role: promote a worker to manager or demote a manager to worker.
  • Edit labels: add or remove node labels, for example to use in placement constraints. Keys allow letters, digits, ., _, / and -; values allow letters, digits, ., _ and -.

Skitflow protects the cluster from changes that would break it:

  • The Skitflow node is fenced. Draining, pausing or demoting the node that runs Skitflow is refused, because it would take the dashboard down. Do it from another manager's CLI if you really mean it. Setting that node back to Active is always allowed.
  • Quorum guard. Demoting a manager is refused when it would leave zero managers, or fewer reachable managers than the quorum needs. Leaving a single manager, or exactly two, shows a warning that you must confirm before the change is applied. Promoting a worker never affects quorum.

Adding nodes to the cluster is on the Cluster tab. See Cluster.

Volumes

The Volumes tab lists Docker volumes across the nodes of the cluster, with the node, driver, the services that mount them and an owner (platform, application or other). A disk usage strip shows usage per node.

  • Node-local volumes (the local driver) stay on their node and do not follow a service that moves.
  • LINSTOR volumes are replicated and follow the service. Replica detail appears only if you hold the linstor.read permission. See LINSTOR Storage.
  • Filter by driver, or show Orphans only to find volumes nothing uses, and LINSTOR resources that have no matching Docker volume.

Create volume makes a node-local volume: enter a name and pick the node. The node must be linked to a managed server.

Delete volume is refused when:

  • any service still mounts the volume, running or not (remove it from every service first);
  • the volume is managed by Skitflow itself, or belongs to an application of another organization;
  • it is a LINSTOR volume whose device is still open on a node.

Deleting a node-local volume needs docker.manage. Deleting a LINSTOR volume needs linstor.manage.

Secrets & Configs

This tab manages Swarm secrets and configs.

  • Secrets: the list shows names and which services use them. Swarm never returns a secret's value, and Skitflow cannot read it back after creation.
  • Configs: the list shows names and consumers. View content opens a config's content. It needs docker.manage rather than docker.read, because configs can hold credentials such as a Traefik basic-auth hash. Large content is truncated in the viewer at 256 KB.
  • Create secret and Create config: a name (letters, digits, _, . and -, up to 63 characters, starting with a letter or digit) and the value or content, up to 500 KB.
  • Remove is refused while any service uses the object, and for objects managed by Skitflow itself. Remove it from those services first.

Secret values and config content are never written to the audit log.

Containers and metrics

The Containers tab always shows live docker stats for containers running on the manager node. It also hosts the monitoring activation card described below. Enabling monitoring unlocks metrics for containers on worker nodes and adds per-node agent health cards to this tab.

Use it to spot overloaded nodes, containers that restart frequently, or a service consuming more resources than expected.

Enabling monitoring

Monitoring deploys a small agent stack attached to a manager node, which pushes per-node container samples so worker-node containers show metrics too (the manager-only docker stats call can't see them). When you enable it you choose:

  • Manager server: the Swarm manager where the monitoring stack is deployed (defaults to the local manager, i.e. the host Skitflow itself runs on).
  • Network: the Docker network used to reach services (defaults to skitflow-network).

You can check whether monitoring is active and disable it again at any time, both from the same card on the Containers tab. Reading needs swarm_monitoring.read; enabling and disabling need swarm_monitoring.manage.

Service Map

The Service Map tab shows how services, stacks, and overlay networks relate to each other. It helps answer questions such as:

  • Which services share an overlay network?
  • Which stack owns this service?
  • Which services are connected to Traefik and exposed to the internet?
  • Is a failing service isolated, or does it sit in the path of other workloads?

The map is topology, not packet capture. A shared overlay network means the services can potentially reach each other, not that they are actively sending traffic right now.

Swarm Networks

The Swarm Networks tab lists the overlay networks of the cluster and lets you manage them.

  • Create network: name, optional MTU (68 to 65535), Internal (blocks external access), Attachable (lets standalone containers join an overlay network), IPv4 and IPv6, and one or more IPAM configurations (subnet, IP range, gateway). Skitflow validates that subnets do not overlap and that gateways and ranges sit inside their subnet. In Swarm mode the driver is overlay.
  • Sync: import networks that already exist on the Docker host so Skitflow manages them. Select up to 100 at once. Networks already imported stay visible and cannot be selected again.
  • Remove: removes a network from the Docker host. Built-in networks cannot be removed, and a network must be synced before Skitflow will remove it.

On Skitflow Cloud, the same network management is available per server on the Networks tab of the Traefik page.

Permissions

Reads need docker.read. Actions need:

ActionPermission
Force update, roll back, scale or remove a servicedocker.manage
Change node availability, role or labelsservers.update
Create a node-local volume, delete a node-local volumedocker.manage
Delete a LINSTOR volumelinstor.manage
Create or remove a secret or config, view config contentdocker.manage
Create, remove or import a networkdocker.manage
View monitoring, enable or disable monitoringswarm_monitoring.read, swarm_monitoring.manage

Owners and admins hold all of these. Members get them through a custom role. Every change is recorded in Audit Logs.

API

Swarm actions are also available over the REST API with an API key (x-api-key header). Paths are relative to https://your-skitflow-host/api.

Method and pathPurpose
GET /swarm/services, GET /swarm/services/get, GET /swarm/services/tasks, GET /swarm/services/logsRead services, tasks and logs.
POST /swarm/services/force-update, /rollback, /scale, /removeChange a service.
GET /swarm/nodesList nodes.
POST /swarm/nodes/availability, /role, /label-add, /label-removeChange a node.
GET /swarm/volumes, GET /swarm/volumes/get, GET /swarm/diskRead volumes and disk usage.
POST /swarm/volumes/create, /swarm/volumes/deleteCreate or delete a node-local or LINSTOR volume.
GET /swarm/secrets, GET /swarm/configs, GET /swarm/configs/content, GET /swarm/stacksRead secrets, configs and stacks.
POST /swarm/secrets/create, /swarm/secrets/remove, /swarm/configs/create, /swarm/configs/removeChange secrets and configs.

For example, to scale a service:

curl -X POST 'https://your-skitflow-host/api/swarm/services/scale' \
  -H 'content-type: application/json' \
  -H 'x-api-key: YOUR-GENERATED-API-KEY' \
  -d '{"serviceId": "YOUR-SERVICE-ID", "replicas": 3}'

Node availability and role changes accept "confirmed": true to acknowledge a quorum warning. See Skitflow API for how to generate an API key.

For HTTP route metrics, logs, and traces, use Observability. For node/container resource thresholds, use Monitoring.

On this page