更新源
apt-get update
安装依赖
apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
导入证书
Ubuntu系统
curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg | apt-key add -
Debian系统
curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/debian/gpg | sudo apt-key add -
添加Docker源
Ubuntu系统
add-apt-repository \
"deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu \
$(lsb_release -cs) \
stable"
Debian系统
add-apt-repository \
"deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/debian \
$(lsb_release -cs) \
stable"
更新源
apt-get update
安装Docker CE
apt-get install docker-ce docker-ce-cli containerd.io
仅Debian 10.0以上系统可延申安装hassio
apt-get install software-properties-common
add-apt-repository universe
apt-get update
apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat
curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s
如报错,请尝试替换为
curl -sL "https://code.aliyun.com/neroxps/supervised-installer/raw/master/installer.sh" | bash -s
Comments | NOTHING