docker misc

This commit is contained in:
Anthony Axenov 2022-09-29 13:20:14 +08:00
parent 7ddcc73454
commit 322239ec1f
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC

View File

@ -9,7 +9,7 @@ echo
# https://docs.docker.com/engine/install/ubuntu/
sudo apt-get install \
sudo apt install \
ca-certificates \
curl \
gnupg \
@ -17,9 +17,8 @@ sudo apt-get install \
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
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 "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
sudo chmod a+r /etc/apt/keyrings/docker.gpg
sudo apt update