Introduction to Containerization

Learn how to containerize an application using Docker.

Docker makes it easy to package applications as images and run them as containers. We call this process containerization. This chapter will walk you through the entire process.

Containerizing an app: A quick overview

Docker aims to make it easy to build, ship, and run applications. We call this containerization, and the process is as follows:

  1. Write your application and create the list of dependencies.
  2. Create a Dockerfile that tells Docker how to build and run the app.
  3. Build the app into an image.
  4. Push the image to a registry (optional).
  5. Run a container from the image.

Get hands-on with 1300+ tech skills courses.