Docker
Ensures not older packages are installed
sudo apt-get remove docker docker-engine docker.io containerd runc
## le ménage des anciennes versions
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
Ajoute le référentiel
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" |
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Adds docker apt key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg |
sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
Refresh apt repos
sudo apt-get update
Installe Docker CE
sudo apt-get install docker-ce docker-ce-cli containerd.io
on ajoute docker aux groupes
sudo groupadd docker
Ensures you are part of it
sudo usermod -aG docker $USER
Now, close your shell and open another for taking the group changes into account
sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
sudo curl -fL -o /usr/local/bin/docker-compose \
"https://github.com/docker/compose-switch/releases/download/${switch_version}/docker-compose-linux-$(dpkg --print-architecture)"