jyasuu/cheat-sheet/docker

Claude Code and agent skill by jyasuu/cheat-sheet

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Container runtime commands including run, exec, build, images, volumes, networks, and compose operations.

Install

npx vskill@latest install jyasuu/cheat-sheet/docker

SKILL.md

The same SKILL.md was published earlier as jyasuu/cheat-sheet/docker.

Docker — Quick Reference

Container Management

bash
# Start container with interactive shell
docker run -ti <image-name> /bin/bash
# Run container in background
docker run -d <image-name>
# Shell into running container
docker exec -ti <container-name> bash
# See container logs
docker logs <container-id>
# Copy files between container and host
docker cp foo.txt mycontainer:/foo.txt
# Publish port
docker run -p localhost-port:container-port <image-name>
# Get container process ID
docker inspect --format '{{.State.Pid}}' <container-name>

Images

bash
# Build image
docker build -t <image-tag> <path-of-Dockerfile>
# List all images
docker images
# List only image IDs
docker image ls -q
# Remove image
docker image rm <image-name-or-id>
# Tag image
docker image tag <image-name>:<tag> <image-name>:<new-tag>
# Save image as tar
docker save -o archive-name.tar <image-name>
# Load image from tar
docker load -i archive-name.tar

Cleanup

bash
# Remove all stopped containers
docker container prune
docker rm $(docker ps -qa)
# Remove all untagged images
docker rmi $(docker images | grep "^<none>" | awk '{print $3}')
# Remove unused volumes
docker volume prune
# Full system cleanup
docker system prune -af

Networks

bash
# List networks
docker network ls
# Create network
docker network create "<network_name>"
# Connect container to network
docker network connect "<network_id|name>" "<container_id|name>"
# Disconnect container from network
docker network disconnect "<network_id|name>" "<container_id|name>"

Volumes

bash
# Create volume
docker volume create <volume-name>
# Inspect volume
docker volume inspect <volume-name>
# Use volume in container
docker run -v <volume-name>:<folder-path> <image>

Docker Compose

bash
docker compose up -d --build
docker compose ps
docker compose logs
docker compose exec -it nginx sh
docker compose restart
docker compose stop
docker compose start

🔗 cheat.sh/docker

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jyasuu/cheat-sheet/docker/badge)](https://verified-skill.com/skills/jyasuu/cheat-sheet/docker)

Something wrong with this skill or its page? Tell us.