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"