Add 'install-docker.sh'
This commit is contained in:
parent
c182aaac19
commit
c894ed8a82
1 changed files with 14 additions and 0 deletions
14
install-docker.sh
Normal file
14
install-docker.sh
Normal 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;
|
Loading…
Reference in a new issue