Index of every page on this site: llms.txt
All skills
Run it yourself

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

  • 1 file
  • 2.1 KB
  • Updated 10 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/jyasuu/cheat-sheet/docker

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈28 tokens for metadata: the name and description. ≈510 when used: this file.

Description uses 1.4% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈114 characters, or 1.4%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Docker — Quick Reference

Container Management

# 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

# 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

# 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

# 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

# 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

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

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at d3e2684. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 10 months ago

README badge

README badge for jyasuu/cheat-sheet/docker