Add 'install-docker.sh'

This commit is contained in:
Dorian Zedler 2022-07-25 14:02:32 +02:00
parent c182aaac19
commit c894ed8a82

14
install-docker.sh Normal file
View file

@ -0,0 +1,14 @@
#!/bin/bash
set -e
sudo apt-get remove docker docker-engine docker.io containerd runc;
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg;
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null;
sudo apt-get update;
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin;