내 서버에 Docker를 설치하는 데 문제가 있습니다.
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.
시스템 메시지:
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
핵심:
2.6.32-042stab127.2
답변1
~에서도커 설치 문서필요한 최소 커널은 3.10이고, 2.6.32-042stab127.2와 일반적으로 3.16을 실행하는 Debian 8을 실행하고 있습니다.
OpenVZ 커널인 것 같습니다. 그것에서홈페이지이미 컨테이너 기반 가상화입니다. 즉, 컨테이너 내에서 컨테이너를 실행하는 것을 의미합니다. 이것이 가능하지만 특히 컨테이너를 실행하고 제어하는 데 사용되는 Docker와 같은 애플리케이션의 경우 제한 사항이 있습니다.
Docker의 운영 환경이 허용되지 않는 두 가지 이유가 있습니다. 보다 일반적인 가상화를 사용하는 공급자와 협력해야 합니다. 커널을 선택하거나(제공된 목록에서도) 변경할 수 있다면 이는 적절한 선택입니다. 물론 베어메탈도 적합한 선택입니다.