What this covers
Dissect the command most students type but few understand. Image, tag, -it, -d, --name, -p, and a production-style nginx command — one piece at a time.
- The bare command: docker run ubuntu:22.04
- Image name and tag
- -it: interactive + TTY
- -d: run in the background
- --name: a name you'll remember
- -p: publish ports host:container
- Putting it all together: nginx with flags explained
- A quick mention of --rm, -v, -e