Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(timeout): 修复安装问题 #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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