Agent skill · software engineering · sundial-org
portainer
Control Docker containers and stacks via Portainer API. List containers, start/stop/restart, view logs, and redeploy stacks from git.
Why this skill is useful
Adds executable scripts for managing Docker containers and stacks via Portainer API that are not commonly known.
What it needs
Requires curl, jq installed locally. Requires portainer account access. About 3k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.
What this skill does
🐳 Portainer Skill "Docker containers? I'll handle them from my lily pad." 🐸 --- 📖 What Does This Skill Do? The Portainer Skill gives you control over your Docker infrastructure through Portainer's REST API. Manage containers, stacks, and deployments without touching the web UI. Features: 📊 Status — Check Portainer server status 🖥️ Endpoints — List all Docker environments 📦 Containers — List, start, stop, restart containers 📚 Stacks — List and manage Docker Compose stacks 🔄 Redeploy — Pull from git and redeploy stacks 📜 Logs — View container logs --- ⚙️ Requirements What Details ------ --------- Portainer Version 2.x with API access Tools curl, jq Auth API Access Token Setup 1. Get API Token from Portainer: Log into Portainer web UI Click username → My Account Scroll to "Access tokens" → Add access token Copy the token (you won't see it again!) 2. Configure credentials: 3. Ready! 🚀 --- 🛠️ Commands status — Check Portainer Server Output: --- endpoints — List Environments Output: --- containers — List Containers Output: --- stacks — List All Stacks Output: --- stack-info — Stack Details Output: --- redeploy — Pull & Redeploy Stack 🔄 Output: This will: 1. Pull latest code from git 2. Rebuild containers if needed 3. Restart the stack --- start / stop / restart — Container Control Output: --- logs — View Container Logs --- 🎯 Example Workflows 🚀 "Deploy Website Update" 🔧 "Debug Container" 📊 "System Overview" --- 🔧 Troubleshooting ❌ "Authentication required / Repository not found" Problem: Stack redeploy fails with git auth error Solution: The stack needs repositoryGitCredentialID parameter. The script handles this automatically by reading from the existing stack config. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills sundial-org/portainer