[Raspberry Pi] Installing Docker and Docker Compose on Raspberry Pi OS
At the end of May 2020, the Raspberry Pi Foundation announced Raspberry Pi OS, the new official operating system for the mini-computer that is replacing Raspbian.
The good news is that Raspberry Pi OS does support Docker and Docker Compose, in both the 32-bit and 64-bit variants! Read below on how to install it as well as Docker Compose.
Installing Docker CE (Community Edition) on the Raspberry Pi OS requires running just a few commands.
The best way to install Docker is to fetch it from the official Docker repositories, so to ensure that you’re always running the latest version.
To install Docker CE on Raspberry Pi OS, both 32-bit and 64-bit, run:
Install some required packages first
Done! At this point, we just need to run two more commands to have the Docker service started and automatically launched at boot.
sudo systemctl enable docker
Now that we have Docker running, we can test it by running the “hello world” image:
sudo docker run --rm hello-world
Install Docker Compose
Lastly, let’s look at how to add Docker Compose.
Docker Compose is normally installed from pre-built binaries, downloaded from the GitHub release page for the project. Sadly, those are not available for the ARM architecture.
We can however install Docker Compose from pip:
Install required packages
With this, you now have a complete Raspberry Pi mini-server running Docker and ready to accept your containers.
 Docker and Docker Compose on Raspberry Pi OS | With Blue Ink - https://withblue.ink/2020/06/24/docker-and-docker-compose-on-raspberry-pi-os.html
 Empowering App Development for Developers | Docker - https://www.docker.com/
 Overview of Docker Compose | Docker Documentation - https://docs.docker.com/compose/