Original tutorial: https://withblue.ink/2019/07/13/yes-you-can-run-docker-on-raspbian.html
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=armhf] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) stable" | \
sudo tee /etc/apt/sources.list.d/docker.list
The aufs package, part of the "recommended" packages, won't install on Buster just yet, because of missing pre-compiled kernel modules. We can work around that issue by using "--no-install-recommends"
sudo apt update
sudo apt install -y --no-install-recommends \
docker-ce \
cgroupfs-mount
sudo systemctl enable docker
sudo systemctl start docker
Original tutorial: https://withblue.ink/2019/07/13/yes-you-can-run-docker-on-raspbian.html
sudo apt update
sudo apt install -y python python-pip libffi-dev python-backports.ssl-match-hostname
This might take a while
sudo pip install docker-compose
sudo mkdir -p /home/"$USER"/.docker
sudo chown "$USER":"$USER" /home/"$USER"/.docker -R
sudo chmod g+rwx "$HOME/.docker" -R
sudo groupadd docker
sudo gpasswd -a $USER docker
sudo usermod -aG docker $USER
sudo reboot
docker run hello-world
Original Tutorial : https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes
Remove any stopped containers and all unused images (not just dangling images)
docker system prune -a
Remove all images
docker rmi $(docker images -a -q)
Stop and remove all containers
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
Remove dangling volumes
docker volume prune