User Input
$ARGUMENTS
Control (start/stop/restart) a named container on a Docker host via the Portainer API.
Steps
Parse
$ARGUMENTS:- Extract action:
start,stop, orrestart - Extract container name
- Extract host if specified after
on(e.g.on docker01)
- Extract action:
Run:
python3 $SKILL_DIR/portainer_control.py <action> <container> [--host <host>]
Example: python3 $SKILL_DIR/portainer_control.py restart grafana --host docker01
Report the script output to the user.
If the script reports multiple matches, ask the user to specify the host.
If auth fails, tell the user:
Set
PORTAINER_TOKEN=ptr_...before invoking. Generate one in Portainer: User Settings > Access Tokens.
Source: sinositato/tato-claude-plugins — distributed by TomeVault.