How to understand building images with docker-compose

Zhao Li
Zhao Li
Jun 9, 2019 · 6 min read

Problem

When we were downloading images and then running the image as a container, we were using images that others have provided via Docker Hub. How do we create a Docker image that is customized for our own use?

Solution

To create a custom image that meets our own requirements, we will need to build an image that contains what we need.

This tutorial will go through building a Docker image and then explaining what happened.