Docker

“Works on my machine” — now guaranteed, everywhere.

▶ the lesson · ~35s · narrated · tap for sound

the intro

Docker packages your application together with everything it needs — runtime, dependencies, config — into a container. The same container runs identically on your laptop, your teammate’s machine, and production. No more it-works-on-my-machine excuses.

the sample

the whole recipe, 4 lines

FROM node:20
COPY . .
RUN npm ci
CMD ["npm", "start"]

fun fact ✦

Containers share your OS kernel, so they are way lighter than full virtual machines.

the docs

quick hits about Docker

15-second answers · interviews, tips, trivia & hidden gems

🎤 interview

Image vs container?

🎤 interview

Why do containers isolate?

📚 tutorial

Dockerfile lines decoded

📚 tutorial

Build, tag, push, pull

🔧 useful

The five run flags you use daily

💎 deep

Code changes without rebuilds?

💎 deep

1GB images → 80MB

💎 deep

Copy files in and out of containers

🔧 useful

Ten times faster builds