docker 安装命令 (debian)

注意需要科学才能用官方的一键脚本

apt update && \
apt install -y curl && \
curl -fsSL https://get.docker.com -o get-docker.sh && \
sh get-docker.sh && \
systemctl enable --now docker

带中文环境

apt update && \
apt install -y curl locales language-pack-zh-hans && \
echo "zh_CN.UTF-8 UTF-8" >> /etc/locale.gen && \
locale-gen zh_CN.UTF-8 && \
update-locale LANG=zh_CN.UTF-8 && \
export LANG=zh_CN.UTF-8 && \
curl -fsSL https://get.docker.com -o get-docker.sh && \
LANG=zh_CN.UTF-8 sh get-docker.sh && \
systemctl enable --now docker

发表评论

电子邮件地址不会被公开。 必填项已用*标注