From dfd7c487011fb43ee70ae365a3f3cda158d8a0ff Mon Sep 17 00:00:00 2001 From: Oliver Gwyther Date: Fri, 11 Feb 2022 01:49:40 +0000 Subject: [PATCH] Update install-docker.sh --- ubuntu/install-docker.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ubuntu/install-docker.sh b/ubuntu/install-docker.sh index adb1b39..737e478 100644 --- a/ubuntu/install-docker.sh +++ b/ubuntu/install-docker.sh @@ -6,11 +6,11 @@ set -o nounset IFS=$(printf '\n\t') # Docker -sudo apt remove --yes docker docker-engine docker.io containerd runc || true +sudo apt remove --yes docker docker-engine docker.io containerd runc sudo apt update sudo apt --yes --no-install-recommends install apt-transport-https ca-certificates wget --quiet --output-document=- https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - -sudo add-apt-repository --yes "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu $(lsb_release --codename --short) stable" +sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu $(lsb_release --codename --short) stable" sudo apt update sudo apt --yes --no-install-recommends install docker-ce docker-ce-cli containerd.io sudo usermod --append --groups docker "$USER"