DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
HomeCheatsheetsDocker Cheatsheet

About Docker Cheatsheet

Docker Cheatsheet preview - Cheatsheets tool

Docker + Compose commands for images, containers, volumes, Dockerfile. Part of the DevTools Surf developer suite. Browse more tools in the Cheatsheets collection.

Use Cases

  • Quickly finding the command to exec into a running container
  • Referencing docker-compose syntax during multi-service setup
  • Looking up volume mount flags for persistent storage configuration
  • Reviewing Dockerfile best practices during image optimization

Tips

  • Use the Compose section for multi-container workflow commands
  • Check the volume commands before deleting persistent data
  • Search for Dockerfile directives to optimize your builds

Fun Facts

  • Docker was released as open source by Solomon Hykes at PyCon in March 2013 and reached 1 billion container downloads within 3 years.
  • Docker containers share the host OS kernel, making them up to 100x faster to start than traditional virtual machines.
  • The Docker whale logo is named 'Moby Dock' and was designed in 2013 — the containers on its back represent the shipping container metaphor.

FAQ

Docker CLI or Docker Compose?
Both. Daily CLI commands (run, build, exec, logs) plus Compose basics (up, down, logs, exec with service names).
Does it cover multi-stage builds?
Yes — the canonical pattern with builder and runtime stages. Essential for small production images.
What about security hardening?
Non-root user, read-only filesystems, dropping capabilities, and secret mounts are covered. Not a full security guide but the common controls.
Is Docker Swarm or k8s in here?
Docker only. For Kubernetes commands see the kubectl Cheatsheet; Swarm is legacy.

Related Cheatsheets Tools

Git CheatsheetMakefile CheatsheetRegex CheatsheetMarkdown CheatsheetVim CheatsheetBash / Shell CheatsheetSQL Cheatsheetkubectl Cheatsheet
New · Flagshipsimple REST client

REST Handler — Collections, env vars, history, cURL converter

Send requests, save collections (nested), swap environments, and convert between cURL / Collection JSON / REST Handler YAML.

Open

Popular tools

The most-used tools on DevToolsSurf, one click away.

Encoding & crypto

  • Base64 Encode
  • Base64 Decode
  • URL Encoder
  • URL Decoder
  • Hash Generator
  • JWT Decoder
  • JWT Encoder
  • UUID Generator
  • ULID Generator
  • Password Generator
  • Bcrypt Hash Tester

Converters

  • CSV to JSON
  • JSON to CSV
  • XML to JSON
  • JSON to XML
  • HTML → Markdown
  • HTML → React JSX
  • cURL to Code
  • Collection JSON → cURL
  • Swagger to Collection JSON
  • JSON → Go Struct
  • JSON → TypeScript Types

JSON & YAML

  • JSON Formatter
  • JSON Validator
  • JSON Viewer
  • JSON Minifier
  • JSON Diff
  • JSONPath Tester
  • YAML Formatter
  • YAML to JSON
  • JSON to YAML

Text & regex

  • Regex Tester
  • Text Diff
  • Case Converter
  • Word Counter
  • Markdown Preview
  • Slug Generator
  • Lorem Ipsum Generator
  • Markdown → PDF

CSS & color

  • CSS Beautifier
  • Minify CSS
  • Color Converter
  • Gradient Generator
  • Contrast Checker
  • Color Palette Generator
  • Flexbox Playground
  • Tailwind → CSS

Generators

  • QR Code Generator
  • Mock Data Generator
  • Favicon Generator
  • .gitignore Builder
  • README.md Generator
  • Dockerfile Generator
  • Sitemap Generator

API & networking

  • REST Handler
  • HTTP Header Analyzer
  • IP Address Lookup
  • CIDR Calculator
  • User-Agent Parser
  • HTTP Status Reference
  • OpenAPI Viewer

Date & time

  • Timestamp Converter
  • Timezone Converter
  • Cron Expression Parser
  • Duration Calculator
  • Age Calculator
  • Date Format Converter

Images

  • Image Converter
  • Image Resizer (Batch)
  • SVG Optimizer
  • Base64 ↔ Image
  • WebP ↔ AVIF Converter
  • Image Compressor

PDF tools

  • PDF Merger
  • PDF Splitter
  • PDF Compressor
  • Markdown → PDF
  • EPUB → PDF
  • MOBI / AZW → PDF
  • DOCX → PDF
  • HTML → PDF

Resources

  • Community feed
  • Themes marketplace
  • Pricing & credits
  • Privacy policy
  • Terms of service
  • Sitemap
  • robots.txt

Your account

  • Sign in
  • Dashboard
  • Run history
  • My profile
  • Settings
DevTools Surf logo
DevTools Surf919+ tools

Fast · privacy-first · client-side · © 2026

Home·Feed·ThemesPricing·Sign inPrivacy·Sitemap Feedback