Last active
August 7, 2020 09:08
-
-
Save suhrmann/be0e8110a8bb307acc524fdcbb3884d6 to your computer and use it in GitHub Desktop.
Install Docker and `docker-compose` on the Raspberry Pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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