What this snippet does
scratch is an empty base, valid only for fully static binaries with no runtime dependencies.
Expected output
Successfully built 4a7e1c9b2f80
Why practise typing this
Typing base images code builds muscle memory for the symbols and indentation Docker uses most, which prose-based typing tests never cover. DevType measures your words per minute and accuracy on this snippet and tracks the individual characters you mistype, so later lessons can target them.
More Docker practice
- Slim over full imagesBase Images · beginner
- Alpine uses muslBase Images · intermediate
- Distroless runtimeBase Images · advanced
- No shell to exec intoBase Images · advanced
- Missing CA certificatesBase Images · advanced
- Pinning by digestBase Images · advanced