本帖最后由 ReinerBraun 于 2022-4-11 17:10 编辑
参考了网上很多方法都没解决,希望MJJ们支支招。
服务器为HH家的,debian10系统
日志如下: [email protected]:~# curl -sSL https://get.daocloud.io/docker | sh # Executing docker install script, commit: 93d2499759296ac1f9c510605fef85052a2c32be + sh -c ‘apt-get update -qq >/dev/null’ + sh -c ‘DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null’ + sh -c ‘curl -fsSL "https://download.docker.com/linux/debian/gpg" | gpg –dearmor –yes -o /usr/share/keyrings/docker-archive-keyring.gpg’ + sh -c ‘echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian buster 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 –no-install-recommends docker-ce-cli docker-scan-plugin docker-ce >/dev/null’ E: Sub-process /usr/bin/dpkg returned an error code (1)
一直报这个错误:Sub-process /usr/bin/dpkg returned an error code (1)
输入 apt-get install -f后,报错
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. invoke-rc.d: initscript docker, action "start" failed. ● docker.service – Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Mon 2022-04-11 17:08:17 CST; 9ms ago Docs: https://docs.docker.com Process: 7154 ExecStart=/usr/bin/dockerd -H fd:// –containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE) Main PID: 7154 (code=exited, status=1/FAILURE)
Apr 11 17:08:17 SW01 systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE Apr 11 17:08:17 SW01 systemd[1]: docker.service: Failed with result ‘exit-code’. Apr 11 17:08:17 SW01 systemd[1]: Failed to start Docker Application Container Engine. dpkg: error processing package docker-ce (–configure): installed docker-ce package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: docker-ce E: Sub-process /usr/bin/dpkg returned an error code (1)
|