Docker and deployment

Lesson 02 · 11 min

Docker and the Dockerfile

An image is a snapshot of the app with its environment. A container is a running image.

An image contains the OS, the right Node version, dependencies, and your code. A container is a running instance of an image, isolated from others. A Dockerfile is the recipe for building the image step by step. Each step is a layer, and Docker reuses unchanged layers from cache.

Sign in to continue

The rest of this lesson opens after sign up

The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.