docker on raspberry pi code example
Example 1: install hass.io docker raspberry pi
sudo apt-get install docker-compose
sudo apt-get install bash jq curl avahi-daemon dbus software-properties-common apparmor-utils network-manager
curl -sL https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh | bash -s -- -m raspberrypi
Example 2: raspbian OS 64 docker
sudo apt update
sudo apt install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add -
echo "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) stable" | \
sudo tee /etc/apt/sources.list.d/docker.list
sudo apt update
sudo apt install -y --no-install-recommends \
docker-ce \
cgroupfs-mount