⌨️
DevType.site

Docker Typing Drills

Docker splits your typing between two grammars: UPPERCASE Dockerfile instructions and hyphen-dense CLI commands. Fluency in both means container workflows stop interrupting your development flow.

Target Categoryterminal DrillMode: Docker
LV 1
Level Progress0 / 100 XP
High Score0 WPM
Badges0 / 5
πŸ“…
Daily Challenge
A new snippet every day β€” same for everyone. Keep your streak alive.
Snippet Language
Custom
Difficulty
Test Length
Keyboard Layout
Visual Theme
Key Switch Sounds
Volume
WPM00
Accuracy00%
Timer0s
πŸ“„ main.js
Ready
1
Click here or press any key to focusTAB / ANY KEY

Two Grammars, One Workflow

Dockerfiles capitalize their instruction verbs β€” `FROM`, `RUN`, `COPY`, `CMD` β€” creating caps bursts like SQL's, followed by lowercase arguments with special forms: image tags with colons (`node:20-alpine`), stage aliases (`AS builder`), and the JSON-array CMD syntax (`["node", "dist/index.js"]`) that mixes brackets, quotes, and commas in one line. Multi-stage builds repeat the pattern with `--from=builder` flags bridging stages.

The CLI side is flag-heavy even by terminal standards: `docker run -d --name api -p 8080:8080 --env-file .env` chains short flags, long flags, and colon-separated port mappings. Cleanup commands stack flags (`system prune -af --volumes`), and exec sessions end in shell paths. Drilling both the file format and the commands builds complete container fluency.

Key Drills for Docker:

  • Caps instructions: `FROM`, `RUN`, `COPY` start every Dockerfile line. Hold Shift through the word like SQL keywords.
  • Colon-separated pairs: Image tags and port maps both use colons: `node:20`, `8080:8080`. Make the pattern automatic.
  • Flag stacking: Drill `-d --name x -p` sequences β€” real docker run commands chain five or more flags.

Sample Drill: Multi-stage Dockerfile

Building production node servers with multi-stage layers.

docker-build Β· medium
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

FROM node:20-alpine AS runner
WORKDIR /app
COPY --from=builder /app/dist ./dist
CMD ["node", "dist/index.js"]

The Symbols That Slow You Down

The keystrokes below are where Docker typing speed is won or lost. Key positions shown for QWERTY β€” the pattern transfers to any layout, just on different physical keys.

SymbolUsed ForKeysHow to Drill It
--flagLong flagTwo hyphens, then word`--name`, `--env-file`, `--rm` β€” double-dash flags chain five deep in real docker run commands.
:Tag / port pairShift+Semicolon`node:20-alpine`, `-p 8080:8080` β€” colon-separated pairs in both image names and port maps.
\Line continuationUnshifted, above EnterDockerfiles continue lines with a trailing backslash β€” an end-of-line reach that must be reflexive.
FROMInstruction capsHold Shift through the wordDockerfile verbs are uppercase β€” the same caps-burst discipline as SQL keywords.
["…"]JSON-array formBrackets as Shift+[ Shift+], quotes as Shift+Apostrophe`CMD ["node", "dist/index.js"]` mixes brackets, quotes, and commas in one line.
$()Build-time substitution$ as Shift+4, then () as Shift+9 and Shift+0Variable expansion inside RUN commands and compose files.

Common Docker Typing Mistakes

  • βœ—Dropping the trailing backslash on continued Dockerfile lines β€” the build fails on the next line.
  • βœ—Typing single hyphens for long flags (`-name` versus `--name`) β€” train the double-dash as its own stroke pair.
  • βœ—Forgetting the colon in port mappings: `-p 8080 8080` does something entirely different.

What's a Good Docker Typing Speed?

Docker typing alternates caps bursts and flag chains: 30–45 WPM with 96%+ accuracy is solid working speed, and full `docker run` invocations should flow without re-reading.