DEV Community

Dev Nestio
Dev Nestio

Posted on

Docker Cheatsheet with interactive command builder — 40+ commands, Compose snippets

What I built

Added Docker Cheatsheet to devnestio — a searchable Docker command reference with an interactive command builder.

👉 https://docker-cheatsheet.pages.dev


Features

  • 40+ Docker commands across 7 categories: containers, images, network, volumes, exec, system, registry
  • Search by command name, description, flag name, or example
  • Category filters — click a category to narrow down
  • Interactive command builder — click a command card to expand flags, click flags to compose a command, copy the result
  • 4 Docker Compose snippets: Basic Web+DB, Node.js+Redis, Nginx Reverse Proxy, Multi-stage with Health Check
  • Zero dependencies, single HTML file

Commands covered

Containers: run, start, stop, restart, rm, ps, logs, inspect, stats, cp, pause, unpause, rename, update, top

Images: build, pull, push, images, rmi, tag, history, save, load, import

Network: network create/ls/rm/inspect/connect/disconnect

Volumes: volume create/ls/rm/inspect/prune

Exec: exec, attach

System: system prune, system df, system info, system events, image prune, container prune

Registry: login, logout, search


The command builder

Click any command card to expand it. Flags are shown as clickable tags — click to add to the built command:

[docker run]
[-d] [-p 8080:80] [-v /host:/container] [-e KEY=val] [--name myapp] [--rm]

→ docker run -d -p 8080:80 --name myapp
Enter fullscreen mode Exit fullscreen mode

Copy the built command with one click.


Tech

  • Pure Vanilla JS, no framework, no build step
  • 82 unit tests with Node.js assert
  • Deployed on Cloudflare Pages

Try it

👉 Docker Cheatsheet

All devnestio tools: https://devnestio.pages.dev

Feedback welcome — if a command or flag is missing, let me know in the comments!

Top comments (0)