xxxxxxxxxx
# install docker
curl -sSL https://get.docker.com | sh
# add the pi user to the docker group (change the pi with your custom username)
sudo usermod -aG docker pi
# logout and login again
# try docker by running
docker run hello-world
xxxxxxxxxx
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh