Skip to content
This repository has been archived by the owner on Oct 23, 2018. It is now read-only.

Docker Tips

Sean edited this page Sep 23, 2018 · 2 revisions

It is important to know the difference between images and containers. You build images, typically using a Dockerfile. Containers are created from images. You run containers, and you specify volumes/mounts when you run the container.

The docker-compose.yaml files specify ways to run containers as well as sometimes how to build the images the containers are based on.

If you make changes to a Dockerfile (thus changing the image), you need to use docker-compose up --build (i.e. yarn start --build) to ensure the images are rebuilt with the new config.

Kitematic is a useful way to manage containers with a GUI. It comes installed with Docker for Windows, you can open it in the right-click menu.

docker volume prune removes unused volumes.

docker compose rm removes the containers created by Docker Compose.

Clone this wiki locally