Raspberry Pi 3 - Top View
%author% via %publisher%
Home / Installing Docker and Docker Compose on Raspberry Pi
Raspberry Pi

Installing Docker and Docker Compose on Raspberry Pi

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.

Continue your adventure here

Leave a Comment

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

DON’T MISS OUT!
Subscribe To Newsletter
Be the first to get latest updates and exclusive content straight to your email inbox.
Stay Updated
Give it a try, you can unsubscribe anytime.
close-link