--- 221020/docker-install.sh
+++ 221020/docker-install.sh
100755 | 100644 | File mode has changed |
... | ... | @@ -13,10 +13,12 @@ |
13 | 13 |
apt-get update |
14 | 14 |
apt-get install -y ca-certificates curl gnupg lsb-release wget git make |
15 | 15 |
mkdir -p /etc/apt/keyrings |
16 |
-curl -fsSL https://download.docker.com/linux/${OS_VERSION}/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg |
|
16 |
+curl -fsSL https://download.docker.com/linux/${OS_VERSION}/gpg -o /etc/apt/keyrings/docker.asc |
|
17 |
+chmod a+r /etc/apt/keyrings/docker.asc |
|
17 | 18 |
echo \ |
18 |
- "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/${OS_VERSION} \ |
|
19 |
- $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null |
|
19 |
+ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/${OS_VERSION} \ |
|
20 |
+ $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ |
|
21 |
+ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null |
|
20 | 22 |
apt-get update |
21 | 23 |
apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin |
22 | 24 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?