x64 Linux Mint 18.3 Cinnamon을 실행하는 노트북에 Docker 설치를 시도했습니다.
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 \
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo
ubuntu-xenial main'
sudo apt update
sudo apt install linux-image-generic linux-image-extra-virtual
sudo apt install docker-engine
마지막 단계에서만 프로세스가 실패합니다. 실제로 소프트웨어를 설치하는 것 같지만 내 시스템이 Docker 서비스를 실행할 수 없습니다.
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 Di 2018-
02-
27 10:45:35 CET; 17ms ago
Docs: https://docs.docker.com
Process: 9906 ExecStart=/usr/bin/dockerd -H fd:// (code=exited,
status=1/FAILURE)
Main PID: 9906 (code=exited, status=1/FAILURE)
Feb 27 10:45:35 silberpfeil systemd[1]: Failed to start Docker
Application Container Engine.
Feb 27 10:45:35 silberpfeil systemd[1]: docker.service: Unit entered
failed state.
Feb 27 10:45:35 silberpfeil systemd[1]: docker.service: Failed with
result 'exit-code'.
"Silberpfeil"은 내 시스템의 이름입니다. 이 오류 프로토콜에는 아래에서 이 오류를 찾아야 한다는 힌트가 있습니다.
- "systemctl 상태 docker.service"
- "journalctl-xe"
첫 번째는 다음을 반환합니다.
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor
preset: enabled)
Active: inactive (dead) (Result: exit-code) since Di 2018-02-27
10:45:38 CET; 9min ago
Docs: https://docs.docker.com
Process: 10011 ExecStart=/usr/bin/dockerd -H fd:// (code=exited,
status=1/FAILURE)
Main PID: 10011 (code=exited, status=1/FAILURE)
Feb 27 10:45:38 silberpfeil systemd[1]: Failed to start Docker
Application Container Engine.
Feb 27 10:45:38 silberpfeil systemd[1]: docker.service: Unit entered
failed state.
Feb 27 10:45:38 silberpfeil systemd[1]: docker.service: Failed with
result 'exit-code'.
Feb 27 10:45:38 silberpfeil systemd[1]: docker.service: Service hold-
off time over, scheduling restart.
Feb 27 10:45:38 silberpfeil systemd[1]: Stopped Docker Application
Container Engine.
Feb 27 10:45:38 silberpfeil systemd[1]: docker.service: Start request
repeated too quickly.
Feb 27 10:45:38 silberpfeil systemd[1]: Failed to start Docker
Application Container Engine.
두 번째는 여기에 게시하기에는 너무 많은 내용을 담고 있습니다. 도움이 필요하지 않은 한. 아래를 살펴보면 다음과 같이 greping을 통해 Docker의 내용을 볼 수 있습니다.
Feb 27 10:45:37 silberpfeil dockerd[10011]: time="2018-02-
27T10:45:37.123564185+01:00" level=info msg="libcontainerd: new
containerd process, pid: 10033"
Feb 27 10:45:38 silberpfeil dockerd[10011]: time="2018-02-
27T10:45:38.129863280+01:00" level=warning msg="failed to rename
/var/lib/docker/tmp for background deletion: %!s(<nil>). Deleting
synchronously"
Feb 27 10:45:38 silberpfeil dockerd[10011]: time="2018-02-
27T10:45:38.140660647+01:00" level=error msg="[graphdriver] prior
storage driver aufs failed: driver not supported"
Feb 27 10:45:38 silberpfeil dockerd[10011]: Error starting daemon:
error initializing graphdriver: driver not supported
Feb 27 10:45:38 silberpfeil systemd[1]: docker.service: Main process
exited, code=exited, status=1/FAILURE
-- Subject: Unit docker.service has failed
-- Unit docker.service has failed.
Feb 27 10:45:38 silberpfeil systemd[1]: docker.service: Unit entered
failed state.
Feb 27 10:45:38 silberpfeil systemd[1]: docker.service: Failed with
result 'exit-code'.
Feb 27 10:45:38 silberpfeil systemd[1]: docker.service: Service hold-
off time over, scheduling restart.
-- Subject: Unit docker.service has finished shutting down
-- Unit docker.service has finished shutting down.
-- Subject: Unit docker.socket has finished shutting down
-- Unit docker.socket has finished shutting down.
-- Subject: Unit docker.socket has begun shutting down
-- Unit docker.socket has begun shutting down.
-- Subject: Unit docker.socket has begun start-up
-- Unit docker.socket has begun starting up.
-- Subject: Unit docker.socket has finished start-up
-- Unit docker.socket has finished starting up.
Feb 27 10:45:38 silberpfeil systemd[1]: docker.service: Start request
repeated too quickly.
-- Subject: Unit docker.service has failed
-- Unit docker.service has failed.
Feb 27 10:45:38 silberpfeil systemd[1]: docker.socket: Unit entered
failed state.
누구든지 뭔가를 찾을 수 있나요?
답변1
이런 댓글들 덕분에 다시 한번 지원되지 않는 드라이버에 대한 부분을 무시하지 않고, 실제로는 소위 그래프드라이버라고 불리는 AUFS 드라이버에 관한 것임을 알게 되었습니다.
인터넷 검색 엔진에서 "docker graphdriver not support"를 검색하면 다음과 같은 결과가 나왔습니다.https://askubuntu.com/questions/870889/cant-start-docker-on-ubuntu-16-04-with-driver-not-supported-error#870890. 그래서 내가 해야 할 일은
sudo rm -rf /var/lib/docker/aufs
자세한 내용은 연결된 답변을 참조하세요.