jrDev

Master the real-world skills every junior developer needs.

Interactive Docker Visualizer

πŸ“„ Dockerfile
FROM node
COPY . .
CMD ["npm", "start"]
βž”
πŸ“¦ Image
my-app:v1
βž”
πŸ—„οΈ Container
ID: a1b2c3d4
βž”
🌐 Running App
Port 8080

The Dockerfile

Everything starts with a Dockerfile. This is a text file that contains instructions on how to build your application environment.

Understanding the Lifecycle

This visualizer demonstrates the primary workflow of Docker.

1. Dockerfile (Source)

The Dockerfile is your recipe. It defines exactly what goes into your environment (OS, dependencies, environment variables).

2. Image (Build)

The Image is your packaged product. It’s unchangeable (immutable) and can be shared on Docker Hub. If you change your code, you build a new image.

3. Container (Run)

The Container is the running process. You can start, stop, and delete containers. You can even run many containers from the same image simultaneously.

4. Running App (Exposure)

By default, containers are isolated. You must explicitly β€œexpose” or map ports to let traffic reach your app.