황원재 황원재 03-14
test
@5711f7b14c4848ace1b37970f26768606d372cc3
221020/docker-install.sh
--- 221020/docker-install.sh
+++ 221020/docker-install.sh
File mode has changed
@@ -13,10 +13,12 @@
 apt-get update
 apt-get install -y ca-certificates curl gnupg lsb-release wget git make
 mkdir -p /etc/apt/keyrings
-curl -fsSL https://download.docker.com/linux/${OS_VERSION}/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
+curl -fsSL https://download.docker.com/linux/${OS_VERSION}/gpg -o /etc/apt/keyrings/docker.asc
+chmod a+r /etc/apt/keyrings/docker.asc
 echo \
-  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/${OS_VERSION} \
-  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
+  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/${OS_VERSION} \
+  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
+  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
 apt-get update
 apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
 
Add a comment
List