Skip to content

Instantly share code, notes, and snippets.

@Lauszus
Last active December 9, 2019 22:12
Show Gist options
  • Save Lauszus/6e6838f5da79689c989e10667be26494 to your computer and use it in GitHub Desktop.
Save Lauszus/6e6838f5da79689c989e10667be26494 to your computer and use it in GitHub Desktop.
Home Assistant Docker installation notes on a Raspberry Pi 3

Install some required packages first:

sudo apt-get update
sudo 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 | sudo 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" | \
    sudo tee /etc/apt/sources.list.d/docker.list

Now install Docker:

sudo apt-get update
sudo apt-get install -y --no-install-recommends \
    docker-ce \
    cgroupfs-mount

sudo systemctl enable docker
sudo systemctl status docker
sudo usermod -aG docker $USER

Logout and back in and then run:

docker run hello-world

Now install Home Assistant:

sudo apt-get -y install bash jq curl avahi-daemon dbus apparmor-utils network-manager
sudo su
curl -sL https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh | bash -s -- -m raspberrypi3

Credit for Docker setup:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment