Skip to content

Instantly share code, notes, and snippets.

@tanelmae
Created August 3, 2019 18:17
Show Gist options
  • Save tanelmae/67b8788819383afe5717247fa6111ae0 to your computer and use it in GitHub Desktop.
Save tanelmae/67b8788819383afe5717247fa6111ae0 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Based on:
# https://withblue.ink/2019/07/13/yes-you-can-run-docker-on-raspbian.html
set -e
sudo su
# Install some required packages first
apt-get update
apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
# Get the Docker signing key for packages
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | apt-key add -
# Add the Docker official repos
echo "deb [arch=armhf] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list
# Install Docker
# The aufs package, part of the "recommended" packages, won't install on Buster just yet, because of missing pre-compiled kernel modules.
# We can work around that issue by using "--no-install-recommends"
apt-get update
apt-get install -y --no-install-recommends \
docker-ce \
cgroupfs-mount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment