From bc8ece36db31d86b54fafb20669442e74adc213e Mon Sep 17 00:00:00 2001 From: smeb y <48400087+a3165458@users.noreply.github.com> Date: Sun, 17 Mar 2024 16:04:41 +0800 Subject: [PATCH] Update duokai.sh --- duokai.sh | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/duokai.sh b/duokai.sh index a76b2a8..5dade2d 100644 --- a/duokai.sh +++ b/duokai.sh @@ -16,20 +16,7 @@ then # 如果 Docker 未安装,则进行安装 echo "未检测到 Docker,正在安装..." sudo apt-get install ca-certificates curl gnupg lsb-release - - # 添加 Docker 官方 GPG 密钥 - sudo mkdir -p /etc/apt/keyrings - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg - - # 设置 Docker 仓库 - 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 - - # 授权 Docker 文件 - sudo chmod a+r /etc/apt/keyrings/docker.gpg - sudo apt-get update - + # 安装 Docker 最新版本 sudo apt-get install docker.io -y else