...

/

Introduction to Containerization

Introduction to Containerization

Get introduced to containerization.

Objectives

In this chapter, you will complete a typical workflow to build an application into a container image. This process is called containerization, and the resulting application is called a containerized application.

You will use Docker to containerize the application (i.e., create the container image), and the steps that will be followed are not specific to the use of Kubernetes. In fact, you will not use Kubernetes in this chapter. However, it’s a vital part of a typical Kubernetes workflow, and you’ll deploy the containerized app to Kubernetes in the following chapters.

Docker and Kubernetes: Let’s clear up the confusion about Kubernetes supposedly dropping support for Docker. Kubernetes stopped using Docker as a container runtime in version 1.24. This means Kubernetes 1.24 and later do not use Docker to start and stop containers. However, apps containerized by Docker still work on Kubernetes and probably make up the majority of apps running on Kubernetes. This is because Kubernetes and Docker both implement Open Container Initiative (OCI) standards.

You can skip this chapter if you’re already familiar with containerizing apps. There’s a pre-created image on Docker Hub you can use.

Access this course and 1400+ top-rated courses and projects.