Installing Docker and Docker Compose on Raspberry Pi

Raspberry Pi 3 - Top View

This is a simple guide for installing Docker and Docker Compose on the Raspberry Pi. <!–more–>

Enable SSH and Samba

On a fresh install of Raspbian do some basic house keeping and run the config utility to enable SSH.

sudo raspi-config

Install Docker

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. {: .notice–warning}

Install Docker Compose

Use python package manager to install docker-compose.

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.

Related posts

Setting up SSL encryption using Reverse Proxy on Raspberry Pi

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Read More