From 9ba5f272c2af19a07fe5e5fbae7e08621897a4d4 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Mon, 25 Jul 2022 14:04:55 +0200 Subject: [PATCH] Update 'install-docker.sh' --- install-docker.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install-docker.sh b/install-docker.sh index f0f966f..869f180 100644 --- a/install-docker.sh +++ b/install-docker.sh @@ -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; \ No newline at end of file