Cheatsheet Pages / Docker Cheatsheet

How to build a Docker image from a Dockerfile — docker build

You have a Dockerfile and want it turned into a named, runnable image.

docker build -t myapp:1.0 .          # -t names it; "." is the build context

Good to know

-t names the image; the dot is the build context — the directory Docker can see.

Docker Cheatsheet one-page card — commands that actually work
The full one-page card — Docker Cheatsheet. Get the complete cheatsheet on GitHub