portainerControl Docker containers and stacks via Portainer API. List containers, start/stop/restart, view logs, and redeploy stacks from git.
Install via ClawdBot CLI:
clawdbot install asteinberger/portainerRequires:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā
ā š³ P O R T A I N E R C O N T R O L C L I š³ ā
ā ā
ā Manage Docker containers via Portainer API ā
ā Start, stop, deploy, redeploy ā
ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
"Docker containers? I'll handle them from my lily pad." šø
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:
| What | Details |
|------|---------|
| Portainer | Version 2.x with API access |
| Tools | curl, jq |
| Auth | API Access Token |
# Add to ~/.clawdbot/.env
PORTAINER_URL=https://your-portainer-server:9443
PORTAINER_API_KEY=ptr_your_token_here
status ā Check Portainer Server./portainer.sh status
Output:
Portainer v2.27.3
endpoints ā List Environments./portainer.sh endpoints
Output:
3: portainer (local) - ā online
4: production (remote) - ā online
containers ā List Containers# List containers on default endpoint (4)
./portainer.sh containers
# List containers on specific endpoint
./portainer.sh containers 3
Output:
steinbergerraum-web-1 running Up 2 days
cora-web-1 running Up 6 weeks
minecraft running Up 6 weeks (healthy)
stacks ā List All Stacks./portainer.sh stacks
Output:
25: steinbergerraum - ā active
33: cora - ā active
35: minecraft - ā active
4: pulse-website - ā inactive
stack-info ā Stack Details./portainer.sh stack-info 25
Output:
{
"Id": 25,
"Name": "steinbergerraum",
"Status": 1,
"EndpointId": 4,
"GitConfig": "https://github.com/user/repo",
"UpdateDate": "2026-01-25T08:44:56Z"
}
redeploy ā Pull & Redeploy Stack š./portainer.sh redeploy 25
Output:
ā Stack 'steinbergerraum' redeployed successfully
This will:
start / stop / restart ā Container Control# Start a container
./portainer.sh start steinbergerraum-web-1
# Stop a container
./portainer.sh stop steinbergerraum-web-1
# Restart a container
./portainer.sh restart steinbergerraum-web-1
# Specify endpoint (default: 4)
./portainer.sh restart steinbergerraum-web-1 4
Output:
ā Container 'steinbergerraum-web-1' restarted
logs ā View Container Logs# Last 100 lines (default)
./portainer.sh logs steinbergerraum-web-1
# Last 50 lines
./portainer.sh logs steinbergerraum-web-1 4 50
# After merging PR
./portainer.sh redeploy 25
./portainer.sh logs steinbergerraum-web-1 4 20
./portainer.sh containers
./portainer.sh logs cora-web-1
./portainer.sh restart cora-web-1
./portainer.sh status
./portainer.sh endpoints
./portainer.sh containers
./portainer.sh stacks
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.
Problem: Container name doesn't match
Solution: Use exact name from ./portainer.sh containers:
steinbergerraum-web-1 not steinbergerraumProblem: Credentials not configured
Solution:
# Add to ~/.clawdbot/.env
echo "PORTAINER_URL=https://your-server:9443" >> ~/.clawdbot/.env
echo "PORTAINER_API_KEY=ptr_your_token" >> ~/.clawdbot/.env
"Redeploy the website"
ā ./portainer.sh redeploy 25
"Show me running containers"
ā ./portainer.sh containers
"Restart the Minecraft server"
ā ./portainer.sh restart minecraft
"What stacks do we have?"
ā ./portainer.sh stacks
| Version | Date | Changes |
|---------|------|---------|
| 1.0.0 | 2026-01-25 | Initial release |
@..@
(----)
( >__< ) "Containers are just fancy lily pads
^^ ^^ for your code to hop around!"
Author: Andy Steinberger (with help from his Clawdbot Owen the Frog šø)
Powered by: Portainer API
Part of: Clawdbot Skills Collection
Made with š for the Clawdbot Community
Ribbit! šø
Generated Mar 1, 2026
A DevOps team uses this skill to automate container management across development and production environments. They frequently redeploy stacks from git after code merges, monitor logs for debugging, and restart containers during incidents, reducing manual web UI interactions.
An e-commerce company employs the skill to control Docker containers hosting their website and backend services. They use it to quickly restart containers during traffic spikes, redeploy updates for seasonal promotions, and check container statuses to ensure high availability.
IT staff at a university manage Docker-based applications for courses and research projects. They list containers to track resource usage, stop unused services during off-hours, and redeploy stacks from git for lab environments, streamlining academic operations.
A startup integrates this skill into their CI/CD pipeline to automate deployments. After code pushes, they trigger redeployments via the skill, view logs to verify builds, and manage containers across endpoints, accelerating release cycles without manual oversight.
A media organization uses the skill to handle Docker containers for streaming and content delivery networks. They monitor stack statuses, restart containers to apply configuration changes, and redeploy from git for updates, ensuring smooth media distribution.
Offer this skill as part of a premium DevOps tool subscription. Charge monthly fees for advanced features like automated redeployments, detailed analytics, and priority support, targeting teams managing large-scale container infrastructures.
Provide consulting services to help businesses integrate and customize the skill with their existing Portainer setups. Offer training, troubleshooting, and bespoke automation scripts, generating revenue through project-based fees.
Release the skill as open-source with basic functionality free to use. Monetize by selling enterprise add-ons such as enhanced security features, multi-user collaboration tools, and advanced monitoring dashboards for larger organizations.
š¬ Integration Tip
Ensure the PORTAINER_URL and PORTAINER_API_KEY are correctly set in the environment file to avoid authentication errors, and verify that curl and jq are installed for seamless API calls.
Automatically update Clawdbot and all installed skills once daily. Runs via cron, checks for updates, applies them, and messages the user with a summary of what changed.
Full desktop computer use for headless Linux servers. Xvfb + XFCE virtual desktop with xdotool automation. 17 actions (click, type, scroll, screenshot, drag,...
Essential Docker commands and workflows for container management, image operations, and debugging.
Tool discovery and shell one-liner reference for sysadmin, DevOps, and security tasks. AUTO-CONSULT this skill when the user is: troubleshooting network issues, debugging processes, analyzing logs, working with SSL/TLS, managing DNS, testing HTTP endpoints, auditing security, working with containers, writing shell scripts, or asks 'what tool should I use for X'. Source: github.com/trimstray/the-book-of-secret-knowledge
Deploy applications and manage projects with complete CLI reference. Commands for deployments, projects, domains, environment variables, and live documentation access.
Monitor topics of interest and proactively alert when important developments occur. Use when user wants automated monitoring of specific subjects (e.g., product releases, price changes, news topics, technology updates). Supports scheduled web searches, AI-powered importance scoring, smart alerts vs weekly digests, and memory-aware contextual summaries.