Skip to main content

Docker

Some (hopefully) helpful links for those new to docker.

This is and will not be any kind of remotely comprehensive tutorial of docker or docker compose. It is, however, ideally a decent resource for getting you to the bits you need to know to utilize any docker based self host setups.

Docker Overview

Docker Overview - the official overview for those new to docker and wondering "what the hell is docker."

Install Docker

Windows and MacOS only have docker desktop. Linux has both docker desktop, and just the docker engine (cli only). Any of these will install docker compose.

info

HOW TO: Install Docker & Docker Compose On Linux

Install Docker Desktop On Linux (Debian, Ubuntu, Fedora) -- This will install the docker desktop GUI and docker compose for Linux (Debian, Ubuntu, Fedora).

Install Docker Engine on Linux -- This will install docker engine and compose on your machine. This is the CLI only option for those who do not want / need the docker desktop client. This includes instructions for the three distros listed above as well as many others.

Docker Compose

Docker Compose Overview - an overview of docker compose.

Start A Docker Compose App

CLI

From the directory which has the docker-compose.yml file, run

docker compose up

that's it.

Stop A Docker Compose App

CLI

From the directory which has the docker-compose.yml file, run

docker compose down

that's it.

note

If you try to run docker compose up on linux and get permission denied, there are two remedies.

  1. run sudo docker compose up - by default your user is not added to the docker group and cannot start / stop containers. Running as root remedies this.

  2. Add your user to the docker group. This is easy and there are instructions in Docker's Linux post-installation steps for Docker Engine.