我正在尝试在一台安装了Debian 8 (Jessie)的机器上安装Docker,但无论我尝试什么,似乎总是遇到错误。
使用这些说明:https://docs.docker.com/install/linux/docker-ce/debian
检查内核:
uname -r
3.16.0-4-686-pae
决定命运的时刻:
sudo apt-get install docker-ce
Setting up docker-ce (18.06.1~ce~3-0~debian) …
Installing new version of config file /etc/bash_completion.d/docker …
Job for docker.service failed. See ‘systemctl status docker.service’ and ‘journalctl -xn’ for details.
invoke-rc.d: initscript docker, action “start” failed.
dpkg: error processing package docker-ce (–configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.19-18+deb8u10) …
Errors were encountered while processing:
docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)
我尝试直接从包中安装: https://download.docker.com/linux/debian/dists/jessie/pool/stable/amd64/ (选择版本17.03.2)。虽然安装了依赖项,但仍然无法正常工作。
sudo dpkg --install docker-ce_17.03.2_ce-0_debian-jessie_amd64.deb
(Reading database ... 169325 files and directories currently installed.)
Preparing to unpack docker-ce_17.03.2_ce-0_debian-jessie_amd64.deb ...
Unpacking docker-ce (17.03.2~ce-0~debian-jessie) over (17.03.2~ce-0~debian-jessie) ...
Setting up docker-ce (17.03.2~ce-0~debian-jessie) ...
Job for docker.service failed. See 'systemctl status docker.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript docker, action "start" failed.
dpkg: error processing package docker-ce (--install):
subprocess installed post-installation script returned error exit status 1
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u7) ...
Errors were encountered while processing:
docker-ce
我也看过这篇文章:http://www.boynux.com/docker-jessie/ 但是我连第一步都做不到:
curl https://get.docker.com | sh
Either your platform is not easily detectable or is not supported by this
installer script.
Please visit the following URL for more detailed installation instructions:
https://docs.docker.com/engine/installation/
在这些尝试之间,我进行了一次
sudo apt-get remove docker docker-engine docker.io docker-ce
sudo apt-get update
systemctl status docker.service
和journalctl -xn
得到了哪些日志?你会从中编辑出任何有用的内容放入你的问题中吗? - halfer