首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Debian上安装docker-ce时出错

在Debian上安装docker-ce时出错
EN

Unix & Linux用户
提问于 2018-02-15 11:54:59
回答 1查看 3.7K关注 0票数 2

我在服务器上安装docker时遇到了问题:

代码语言:javascript
复制
    user@server:/# apt-get install docker-ce
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
      docker-ce
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/30.2 MB of archives.
    After this operation, 152 MB of additional disk space will be used.
    debconf: unable to initialize frontend: Dialog
    debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 1.)
    debconf: falling back to frontend: Readline
    Selecting previously unselected package docker-ce.
    (Reading database ... 25607 files and directories currently installed.)
    Preparing to unpack .../docker-ce_17.12.0~ce-0~debian_amd64.deb ...
    Unpacking docker-ce (17.12.0~ce-0~debian) ...
    Processing triggers for systemd (215-17+deb8u7) ...
    Setting up docker-ce (17.12.0~ce-0~debian) ...
    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 systemd (215-17+deb8u7) ...
    Errors were encountered while processing:
     docker-ce
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    user@server:/# journalctl -xn
    -- Logs begin at Thu 2018-02-15 11:45:24 CET, end at Thu 2018-02-15 12:05:46 CET. --
    Feb 15 12:05:46 git systemd[1]: Unit docker.service entered failed state.
    Feb 15 12:05:46 git systemd[1]: docker.service holdoff time over, scheduling restart.
    Feb 15 12:05:46 git systemd[1]: Stopping Docker Application Container Engine...
    -- Subject: Unit docker.service has begun shutting down
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit docker.service has begun shutting down.
    Feb 15 12:05:46 git systemd[1]: Stopping Docker Socket for the API.
    -- Subject: Unit docker.socket has begun shutting down
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit docker.socket has begun shutting down.
    Feb 15 12:05:46 git systemd[1]: Starting Docker Socket for the API.
    -- Subject: Unit docker.socket has begun with start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit docker.socket has begun starting up.
    Feb 15 12:05:46 git systemd[1]: Listening on Docker Socket for the API.
    -- Subject: Unit docker.socket has finished start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit docker.socket has finished starting up.
    --
    -- The start-up result is done.
    Feb 15 12:05:46 git systemd[1]: Starting Docker Application Container Engine...
    -- Subject: Unit docker.service has begun with start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit docker.service has begun starting up.
    Feb 15 12:05:46 git systemd[1]: docker.service start request repeated too quickly, refusing to start.
    Feb 15 12:05:46 git systemd[1]: Failed to start Docker Application Container Engine.
    -- Subject: Unit docker.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit docker.service has failed.
    --
    -- The result is failed.
    Feb 15 12:05:46 git systemd[1]: Unit docker.service entered failed state.

SysInfo:

代码语言:javascript
复制
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian

内核:

代码语言:javascript
复制
2.6.32-042stab127.2
EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2018-02-16 20:52:29

码头安装文件中,所需的最小内核为3.10,您正在使用Debian 8运行2.6.32-042歧途127.2,而Debian 8通常运行3.16。

它似乎是一个OpenVZ内核。从主页面来看,它已经是一种基于容器的虚拟化。所以这意味着在一个容器中运行一个容器。虽然这是可能的,但也有一些限制,特别是对于像Docker这样的用于运行和控制容器的应用程序。

这两个原因使得环境无法运行Docker。您应该尝试使用更常见的虚拟化来使用提供程序。如果您可以选择内核(即使是在提供的列表中)或更改内核,这应该是一个合适的选择。当然,裸金属也是一个合适的选择。

票数 2
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/424357

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档