8: Containerizing an app
Docker is all about taking applications and running them in containers.
The process of taking an application and configuring it to run as a container is called “containerizing”.
In this chapter, we’ll walk through the process of containerizing a simple Linux-based web application. If you don’t have a Linux Docker environment to follow along with, you can use Play With Docker for free. Just point your web browser to https://play-with-docker.com and spin up some Linux Docker nodes. It’s my favourite way to spin up Docker and do testing!
We’ll split this chapter into the usual three parts:
- The TLDR
- The deep dive
- The commands
Let’s containerize an app!
Containerizing an app - The TLDR
Containers are all about making apps simple to build, ship, and run.
The process of containerizing an app looks like this:
- Start with your application code and dependencies
- Create a Dockerfile that describes your...