Containerization with Docker
Package your Elixir/Phoenix application into Docker containers for consistent and portable deployments.
Welcome to Docker for Elixir!
In this lesson, we'll learn how to package your Elixir and Phoenix applications using Docker containers. This makes your deployments consistent and portable across different environments.
Think of Docker as a way to bundle your application and all its dependencies into a single, isolated package.
Images, Containers, & Dockerfiles
Let's define some core Docker terms:
- Image: A lightweight, standalone, executable package that includes everything needed to run a piece of software, including the code, a runtime, system tools, libraries, and settings.
- Container: A running instance of an image. It's an isolated process that shares the host OS kernel but runs in its own environment.
- Dockerfile: A text file that contains all the commands a user could call on the command line to assemble an image. It's your recipe for building an image.
All lessons in this course
- Building Releases with Mix Release
- Containerization with Docker
- Cloud Deployment Strategies
- Zero-Downtime Deploys and Hot Upgrades