*always smart first
sudo apt-get update && sudo apt-get upgrade
if you trust them
curl -sSL https://get.docker.com | sh
if you want to look at the script first
curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh sudo usermod -aG docker pi
- may need to start or enable the daemon as well
sudo systemctl enable docker