root@hinas:~# install-docker.sh
[ o.k. ] ... [ 正在下载配置,请耐心等待完成。 ]
debconf: delaying package configuration, since apt-utils is not installed
[ o.k. ] ... [ 在线安装 docker 请耐心等待完成。 ]
- DOWNLOAD_URL=https://mirrors.ustc.edu.cn/docker-ce
- pre_reqs='apt-transport-https ca-certificates curl software-properties-common'
++ dpkg --print-architecture
++ lsb_release -cs
- apt_repo='deb [arch=armhf signed-by=/etc/apt/keyrings/docker.gpg] https://mirr ors.ustc.edu.cn/docker-ce/linux/ubuntu focal stable'
- pkgs='docker-ce docker-ce-cli containerd.io docker-compose-plugin'
- command -v gpg
- sh -c 'DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-htt ps ca-certificates curl software-properties-common >/dev/null'
- sh -c 'install -m 0755 -d /etc/apt/keyrings'
- sh -c 'curl -fsSL "https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg" | g pg --dearmor --yes -o /etc/apt/keyrings/docker.gpg'
- sh -c 'chmod a+r /etc/apt/keyrings/docker.gpg'
- sh -c 'echo "deb [arch=armhf signed-by=/etc/apt/keyrings/docker.gpg] https://m irrors.ustc.edu.cn/docker-ce/linux/ubuntu focal stable" > /etc/apt/sources.list. d/docker.list'
- sh -c 'apt-get update -qq >/dev/null'
- sh -c 'DEBIAN_FRONTEND=noninteractive apt-get install -y -qq docker-ce docker- ce-cli containerd.io docker-compose-plugin >/dev/null'
- set +x
[ o.k. ] ... [ 启动 docker ]
Synchronizing state of docker.service with SysV service script with /lib/systemd /systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable docker
[ o.k. ] ... [ docker 安装成功 ]
[ o.k. ] ... [ 在线安装 docker-compose 请耐心等待完成 ]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 166 100 166 0 0 528 0 --:--:-- --:--:-- --:--:-- 532
[ 错误 ] docker-compose 安装失败 [ err ]
[ o.k. ] 程序终止