Skip to content

Instantly share code, notes, and snippets.

@suhrmann
Last active August 7, 2020 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suhrmann/be0e8110a8bb307acc524fdcbb3884d6 to your computer and use it in GitHub Desktop.
Save suhrmann/be0e8110a8bb307acc524fdcbb3884d6 to your computer and use it in GitHub Desktop.
Install Docker and `docker-compose` on the Raspberry Pi
# Based on:
# "Docker auf dem Raspberry Pi" (Docker on Raspberry Pi), c't 2/2019,
# https://www.heise.de/select/ct/2019/2/1546749973900625
# Download install script
curl -fsSL https://get.docker.com -o get-docker.sh
# Install Docker
sudo sh get-docker.sh
# Add user "pi" to Docker usergroup
sudo usermod -aG docker pi
# Test
docker run hello-world
###########################
# docker-compose
# Based on: "Installing Docker and Docker Compose on the Raspberry Pi in 5 Simple Steps", 2020-07-05, by Rohan Sawant
# https://dev.to/rohansawant/installing-docker-and-docker-compose-on-the-raspberry-pi-in-5-simple-steps-3mgl
# Install dependencies
sudo apt-get install -y python3 python3-pip
# Install docker-compose via pip / Python
sudo pip3 -v install docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment