Infrastructure / DevOps

What is Docker? Images and containers explained

Docker explained: how a Dockerfile, images and containers package an app with everything it needs, so it runs the same on any machine. With a worked example.

  • 7 min read
  • 5 questions
  • +35 XP
Transcript

Docker explained by cats. Kitty writes an app. On Kitty's computer, the app works. Other Kitty gets the app. On Other Kitty's computer, the app breaks. Why? Different environment. Smart Kitty adds a Dockerfile to the app. The Dockerfile says, here's everything the app needs.

Tuna, bed, settings. Other Kitty runs the app with Docker. Now it works the same. Because Docker makes the environment the same. Anywhere.