Update 'install-docker.sh'
This commit is contained in:
parent
7c2058e5cc
commit
9ba5f272c2
1 changed files with 4 additions and 0 deletions
|
@ -2,13 +2,17 @@
|
|||
|
||||
set -e
|
||||
|
||||
echo "**** remove old versions ****"
|
||||
sudo apt-get remove docker docker-engine docker.io containerd runc;
|
||||
|
||||
echo "**** download gpg key ****"
|
||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg;
|
||||
|
||||
echo "**** add repo ****"
|
||||
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;
|
||||
|
||||
echo "**** install ****"
|
||||
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