Sniply Blog

What is Docker? The 2-minute mental model

#docker#basics

Docker lets you package an app with everything it needs (system libs, runtime, config) so it runs the same everywhere.

# Build an image from Dockerfile
docker build -t hello .

# Run it (maps port 3000)
docker run -p 3000:3000 hello

That’s it—portable apps, fewer “it works on my machine” moments.

What is Docker? The 2-minute mental model · Sniply