通过 GitHub Actions 从官网抓取 Docker 的安装脚本。
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
curl -fsSL https://github.com/FujiiTaki/docker-install/releases/latest/download/linux.sh -o linux.sh
chmod +x linux.sh
sudo ./linux.sh
代理发布页,如当前代理地址不可用获取最新代理地址替换 https://ghgo.xyz/
curl -fsSL https://ghgo.xyz/https://github.com/FujiiTaki/docker-install/releases/latest/download/linux.sh -o linux.sh
chmod +x linux.sh
sudo ./linux.sh