with one click
docker-management
Docker operations with conflict-aware resource management
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Docker operations with conflict-aware resource management
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | docker-management |
| description | Docker operations with conflict-aware resource management |
docker_cliUse docker_cli for ALL Docker operations — containers, images, networks, volumes, compose, exec, build, etc.
Supported commands (set via command= param):
ps, run, exec, start, stop, restart, logs, stats, inspect, build, pull, tag, imagesnetwork ls, network create, network inspect, network connect, network disconnectvolume ls, volume create, volume inspectcompose up, compose down, compose ps, compose logsinfo, versionExamples:
docker_cli(command="ps", args="-a")docker_cli(command="run", args="-d -p 8080:80 --name my-nginx nginx:latest")docker_cli(command="exec", args="my-nginx sh -c 'curl localhost'")docker_cli(command="compose up", args="-d --build", cwd="/workspace")remove_container, remove_image, remove_network, prune_imagesremove_volume, prune_volumes, docker_system_pruneBefore creating any resource, verify it doesn't exist:
docker_cli(command="ps", args="-a") before running a new containerdocker_cli(command="network ls") before creating a networkdocker_cli(command="volume ls") before creating a volumeCheck docker_cli(command="ps", args="-a") output for container/port conflicts.
1. ASSESS: docker_cli list/inspect commands to check current state
2. PLAN: identify what needs creating vs what already exists
3. EXECUTE: docker_cli to create only what's missing
4. DONE: report, don't re-verify
docker_cli output starting with Error: = failuredocker_cli output NOT starting with Error: = success"success": false = failure"success": true = success[TRUNCATED] = normal, not an errordocker_cli validates all args and rejects any token containing ;, |, &&, ||, `, $(.
This affects two common patterns — avoid them:
# BLOCKED — semicolon inside {{range}} template
docker_cli(command="inspect", args="mybox --format '{{range .Mounts}}{{.Name}}; {{end}}'")
# OK — use a safe separator or plain format
docker_cli(command="inspect", args="mybox --format '{{range .Mounts}}{{.Name}} {{.Destination}} {{end}}'")
# BLOCKED — pipe to grep is a shell operator
docker_cli(command="images", args="--format '{{.Repository}}:{{.Tag}}' | grep nginx")
# OK — drop the grep, inspect the raw output yourself
docker_cli(command="images", args="--format '{{.Repository}}:{{.Tag}}'")
# BLOCKED — semicolon in exec payload
docker_cli(command="exec", args="mybox sh -c 'apt-get update; apt-get install -y curl'")
# OK — use && for sequential commands (also blocked) → split into separate exec calls
docker_cli(command="exec", args="mybox apt-get update")
docker_cli(command="exec", args="mybox apt-get install -y curl")
; or | anywhere in args (even inside Go templates)