← TEK2 videos

docker run — every flag explained

Week 01 · 5 min

Download MP4

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.

  1. The bare command: docker run ubuntu:22.04
  2. Image name and tag
  3. -it: interactive + TTY
  4. -d: run in the background
  5. --name: a name you'll remember
  6. -p: publish ports host:container
  7. Putting it all together: nginx with flags explained
  8. A quick mention of --rm, -v, -e