docker-swarm

Automate Docker Swarm stack deployments and ongoing cluster management.

1|1|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/code0100fun/botfiles --skill docker-swarm-code0100fun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker-swarm
Source: https://github.com/code0100fun/botfiles/tree/main/plugins/infra-ops/skills/docker-swarm
Command: npx skills add https://github.com/code0100fun/botfiles --skill docker-swarm-code0100fun

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured approach to deploying and operating Docker Swarm environments using stacks, consistent networking, TLS certificate management, shared storage permissions, Portainer integration, and GPU workload support; it ensures repeatable deployments and governance for multi-service applications.

Core Features & Use Cases

  • Stack-based deployments: use docker stack deploy with compose templates for scalable services.
  • TLS and certificate management: Traefik-based TLS handling with per-service certificates.
  • NFS permissions: proper file ownership and root_squash considerations for container access.
  • Portainer management: streamlined agent and container orchestration during daemon restarts and updates.
  • GPU workloads: constrained scheduling and device reservations for GPU-enabled services.
  • Networking & discovery: overlay networks with service discovery across stacks.
  • Operational hardening: health checks, rolling updates, and debugging best practices.

Quick Start

Run a sample stack using docker stack deploy -c compose.yml <stack-name> to validate your Swarm setup.

Frequently Asked Questions about docker-swarm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a multi-service Docker Swarm stack with TLS certificates?

Deploy Docker Swarm stacks using docker stack deploy with compose templates, applying Traefik-based TLS labels for per-service certificate management and consistent overlay networking across manager and worker nodes.

Can I schedule GPU workloads in Docker Swarm across worker nodes?

Yes, Docker Swarm scheduling supports GPU workloads by applying placement constraints and device reservations to ensure GPU-enabled services run on designated worker nodes within the cluster.

What's the best way to handle NFS permissions for Docker containers in a Swarm cluster?

Handle NFS permissions in Docker Swarm by configuring proper file ownership and root_squash considerations, ensuring containers have correct access to shared storage volumes across manager and worker nodes.

Does Portainer work with Docker Swarm for managing rolling updates and health checks?

Yes, Portainer integrates with Docker Swarm to streamline agent orchestration during daemon restarts, while supporting operational hardening through health checks and rolling updates for deployed stacks.

Why does my Traefik TLS routing fail across multiple Docker Swarm stacks?

Traefik TLS routing across Docker Swarm stacks requires consistent overlay network configuration and proper per-service certificate labels to ensure service discovery and routing function correctly across the cluster.