Skip to content

Conversation

LJ117
Copy link

@LJ117 LJ117 commented Jun 13, 2024

  1. 修复 ntpdate 安装失败问题, 先apt-get update 更新缓存
  2. 修复安装 containerd 失败问题, 替换为清华docker源

1. 修复 ntpdate 安装失败问题, 先apt-get update 更新缓存
2. 修复安装 containerd 失败问题, 替换为清华docker源
@xiaopeng163
Copy link
Owner

感谢你的修复,因为这个安装脚本也会有海外的用户使用,我想一下如何安排

@Nixie-Tube
Copy link

Nixie-Tube commented Oct 30, 2024

echo "[TASK 5] Install containerd runtime"
mkdir -p /etc/apt/keyrings
curl -fsSL https://mirrors.aliyun.com/docker-ce/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://mirrors.aliyun.com/docker-ce/linux/ubuntu
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
apt -qq update >/dev/null 2>&1
apt install -qq -y containerd.io >/dev/null 2>&1
containerd config default >/etc/containerd/config.toml
sed -i 's/SystemdCgroup = false/SystemdCgroup = true/' /etc/containerd/config.toml
systemctl restart containerd
systemctl enable containerd >/dev/null 2>&1

这个写法也可解决相同问题,阿里镜像

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants