Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 638444 - app-emulation/docker docker service won't start
Summary: app-emulation/docker docker service won't start
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tianon
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-22 11:55 UTC by malcolm.mielle
Modified: 2017-11-22 21:07 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description malcolm.mielle 2017-11-22 11:55:54 UTC
# docker version
Client:
 Version:      17.10.0-ce
 API version:  1.33
 Go version:   go1.9.2
 Git commit:   f4ffd25
 Built:        Wed Nov 22 10:55:39 2017
 OS/Arch:      linux/amd64
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

When trying to run the docker demon:

# systemctl start docker.service
Job for docker.service failed because the control process exited with error code.
See "systemctl  status docker.service" and "journalctl  -xe" for details.

The journal log:

$ journalctl  -xe
-- 
-- The start-up result is RESULT.
Nov 22 12:53:58 PC124-180.oru.se systemd[1]: Starting Docker Application Container Engine...
-- Subject: Unit docker.service has begun start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit docker.service has begun starting up.
Nov 22 12:53:58 PC124-180.oru.se dockerd[4092]: time="2017-11-22T12:53:58.531920668+01:00" level=info msg="libcontainerd: new>
Nov 22 12:53:59 PC124-180.oru.se dockerd[4092]: time="2017-11-22T12:53:59.570799921+01:00" level=warning msg="devmapper: Usag>
Nov 22 12:53:59 PC124-180.oru.se dockerd[4092]: time="2017-11-22T12:53:59.589284505+01:00" level=warning msg="devmapper: Base>
Nov 22 12:53:59 PC124-180.oru.se dockerd[4092]: time="2017-11-22T12:53:59.603556782+01:00" level=info msg="[graphdriver] usin>
Nov 22 12:53:59 PC124-180.oru.se dockerd[4092]: time="2017-11-22T12:53:59.616054385+01:00" level=info msg="Graph migration to>
Nov 22 12:53:59 PC124-180.oru.se dockerd[4092]: time="2017-11-22T12:53:59.616367672+01:00" level=warning msg="mountpoint for >
Nov 22 12:53:59 PC124-180.oru.se dockerd[4092]: time="2017-11-22T12:53:59.616542676+01:00" level=info msg="Loading containers>
Nov 22 12:53:59 PC124-180.oru.se dockerd[4092]: Error starting daemon: Error initializing network controller: error obtaining>
Nov 22 12:53:59 PC124-180.oru.se dockerd[4092]: Perhaps iptables or your kernel needs to be upgraded.
Nov 22 12:53:59 PC124-180.oru.se dockerd[4092]:  (exit status 3)
Nov 22 12:53:59 PC124-180.oru.se systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Nov 22 12:53:59 PC124-180.oru.se systemd[1]: docker.service: Failed with result 'exit-code'.
Nov 22 12:53:59 PC124-180.oru.se systemd[1]: Failed to start Docker Application Container Engine.
-- Subject: Unit docker.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit docker.service has failed.
-- 
-- The result is RESULT.

And what systemctl is teeling me:

 $ systemctl  status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2017-11-22 12:54:01 CET; 21s ago
     Docs: https://docs.docker.com
  Process: 4204 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
 Main PID: 4204 (code=exited, status=1/FAILURE)

Nov 22 12:54:01 PC124-180.oru.se systemd[1]: docker.service: Service hold-off time over, scheduling restart.
Nov 22 12:54:01 PC124-180.oru.se systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Nov 22 12:54:01 PC124-180.oru.se systemd[1]: Stopped Docker Application Container Engine.
Nov 22 12:54:01 PC124-180.oru.se systemd[1]: docker.service: Start request repeated too quickly.
Nov 22 12:54:01 PC124-180.oru.se systemd[1]: docker.service: Failed with result 'exit-code'.
Nov 22 12:54:01 PC124-180.oru.se systemd[1]: Failed to start Docker Application Container Engine.


I know nothing about docker and such so let me know if you need more information
Comment 1 Mike Gilbert gentoo-dev 2017-11-22 20:50:16 UTC
Nov 22 12:53:59 PC124-180.oru.se dockerd[4092]: Error starting daemon: Error initializing network controller: error obtaining>
Nov 22 12:53:59 PC124-180.oru.se dockerd[4092]: Perhaps iptables or your kernel needs to be upgraded.

I would guess that your kernel is misconfigured. Please read your elog messages.
Comment 2 malcolm.mielle 2017-11-22 20:55:50 UTC
You're right ! It took me a while to realise but that's exactly what the reason was :/

Sorry for the noise