Update install-docker.sh
This commit is contained in:
parent
81343bb8fb
commit
dfd7c48701
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user