managing-docker
Installation
SKILL.md
Docker Management Skill
Manage Docker containers, images, volumes, networks, and Compose stacks.
Core Helper Functions
#!/bin/bash
# Docker command wrapper with error handling
docker_cmd() {
docker "$@" 2>/dev/null || echo "ERROR: docker $1 failed"
}
# Format docker output as compact JSON
docker_json() {
docker "$@" --format '{{json .}}' 2>/dev/null | jq -s '.'
}