- Update and upgrade package index
- Install necessary packages
- Add official GPG key
- Set up the stable repository
apt update && apt upgrade
apt install 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=armhf] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list
apt update
apt install docker-ce
groupadd docker
usermod -aG docker $USER
systemctl enable docker
docker run armhf/hello-world