https://docs.docker.com/engine/install/debian/
- Remove old docker, update and install requirements
sudo apt-get remove docker docker-engine docker.io containerd runc sudo apt-get update sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common
- Download public-key for official docker repository and add it to system
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - sudo apt-key fingerprint 0EBFCD88 Should be: 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
- Add official docker repository
sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/debian \ $(lsb_release -cs) \ stable"
- Update again (due to the new repository) and install docker
sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io
- Change default IP range for docker containers, since it is 172.17.0.0/16 by default :-)
https://support.hyperglance.com/knowledge/changing-the-default-docker-subnet
sudo nano /etc/docker/daemon.json { "log-driver": "journald", "log-opts": { "tag": "{{.Name}}" }, "bip": "10.0.0.1/16", "default-address-pools":[ {"base":"10.1.0.0/16","size":16} ] }
sudo systemctl restart docker ip addr
- Add user to docker group to allow docker without sudo
sudo usermod -aG docker $USER
apt-get install
!
Install docker-compose by this tutorial: https://docs.docker.com/compose/install/
https://github.com/docker/labs/blob/master/beginner/chapters/alpine.md
docker pull debian:buster
docker images