13 lines
498 B
Plaintext
13 lines
498 B
Plaintext
# 1. 安装必要工具
|
|
apt-get update
|
|
apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
|
|
|
|
# 2. 添加 Docker 官方 GPG 密钥
|
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
|
|
|
|
# 3. 设置适配 aarch64 的稳定版仓库
|
|
add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
|
|
|
# 4. 再次更新并安装
|
|
apt-get update
|
|
apt-get install -y docker-ce docker-ce-cli containerd.io |