Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Error while starting Docker daemon
Date: Sat, 07 Oct 2017 16:51:14
Message-Id: 4614066.t0CMjbPn03@dell_xps
In Reply to: [gentoo-user] Error while starting Docker daemon by Hubert Hauser
1 On Saturday, 7 October 2017 17:23:33 BST Hubert Hauser wrote:
2 > I am using Gentoo as Host OS for Docker containers.
3 > I have compiled
4 > kernel using instructions on page
5 > https://wiki.gentoo.org/wiki/Docker#Kernel and I have installed Docker
6 > from Gentoo repository.
7 >
8 > Host system informations:
9 >
10 > pecan@tux ~ $ uname -a
11 > Linux tux 4.12.12-gentoo #8 SMP Sat Oct 7 13:58:47 CEST 2017 x86_64
12 > Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHz GenuineIntel GNU/Linux
13 >
14 > Docker version:
15 >
16 > pecan@tux ~ $ docker version
17 > Client:
18 > Version: 17.03.2-ce
19 > API version: 1.27
20 > Go version: go1.9.1
21 > Git commit: f5ec1e2
22 > Built: Sat Oct 7 14:50:59 2017
23 > OS/Arch: linux/amd64
24 > Cannot connect to the Docker daemon at unix:///var/run/docker.sock.
25 > Is the docker daemon running?
26 >
27 > Look at "Cannot connect to the Docker daemon at
28 > unix:///var/run/docker.sock. Is the docker daemon running?". The same
29 > message appears if I try get docker system-wide informations:
30 >
31 > pecan@tux ~ $ docker info
32 > Cannot connect to the Docker daemon at unix:///var/run/docker.sock.
33 > Is the docker daemon running?
34
35 It seems you have not yet started docker.
36
37
38 > The same error appears if I try run the same command as sudo, so this
39 > error applies to daemon. I tried to check if there a mistake in Docker
40 > daemon privileges.
41 >
42 > pecan@tux ~ $ sudo docker info
43 > Cannot connect to the Docker daemon at unix:///var/run/docker.sock.
44 > Is the docker daemon running?
45 >
46 > Based on the message I am able to say that maybe Docker daemon not
47 > running. I checked daemon status to make sure:
48 >
49 > pecan@tux ~ $ sudo service docker status
50 > * status: crashed
51
52 Did you try starting it from the CLI? Any useful messages there?
53
54
55 > Docker daemon is crashed. To see the reason, I looked at the logs:
56 >
57 > pecan@tux ~ $ cat /var/log/docker.log
58 > time="2017-10-07T14:52:13.178261811+02:00" level=info
59 > msg="libcontainerd: new containerd process, pid: 32311"
60 > time="2017-10-07T14:52:14.434232306+02:00" level=info msg="Graph
61 > migration to content-addressability took 0.00 seconds"
62 > time="2017-10-07T14:52:14.434413425+02:00" level=warning msg="Your
63 > kernel does not support cgroup blkio weight"
64
65 OK, start from checking your kernel has all the necessary modules compiled in,
66 rebuild it and reboot.
67
68
69 > time="2017-10-07T14:52:14.434423960+02:00" level=warning msg="Your
70 > kernel does not support cgroup blkio weight_device"
71 > time="2017-10-07T14:52:14.434759986+02:00" level=info msg="Loading
72 > containers: start."
73 > time="2017-10-07T14:52:14.437180876+02:00" level=info msg="Firewalld
74 > running: false"
75 > Error starting daemon: Error initializing network controller: list
76 > bridge addresses failed: no available network
77 >
78 > Currently, that is a point in that I do not know what should I do to be
79 > able run Docker daemon.
80 >
81 > Useful informations:
82 >
83 > - I am connected to OpenVPN through UDP.
84 > - I have disabled iptables and ip6tables.
85 > - I have set 8.8.8.8 and 8.8.4.4 DNS providers.
86 > - I have running privoxy and tor daemons.
87 > - I use OpenRC init system.
88 >
89 > Can you help me?
90
91 I don't use docker to know any operational peculiarities of it, but others
92 with more experience will hopefully chip in. From what I see above you need
93 to rebuild your kernel with the necessary modules, reboot and then try
94 starting docker if it hasn't started on its own.
95
96 HTH.
97 --
98 Regards,
99 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature