This is a simple guide for installing Docker and Docker Compose on the Raspberry Pi.
Enable SSH and Samba
On a fresh install of Raspbian do some basic house keeping and run the config utility to enable SSH.
You can use a script to install docker. All you need to do is run this commands:
curl -fsSL get.docker.com -o get-docker.sh sudo sh get-docker.sh
If you run into a permission issue after installation we need to run the following command to resolve issues.
sudo usermod -a -G docker $USER
The change will be applied after logging out and logging back in.
Install Docker Compose
Use python package manager to install
sudo pip install docker-compose
Setting up Docker to start on boot
sudo systemctl enable docker
At this point, I recommend you set up this docker-compose alias for easy access and less typing.