Skip to content

Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network #35121

Description

@hubotx

Description

I have physical machine with Gentoo as host OS for Docker containers. I have compiled kernel using instructions on page https://wiki.gentoo.org/wiki/Docker#Kernel and I have installed Docker from Gentoo repository (see on the section Additional environment details (AWS, VirtualBox, physical, etc.)). I have set following USE flags:

>=app-emulation/docker-17.03.2 pkcs11 overlay device-mapper container-init btrfs aufs

I have emerged Docker and added it to boot level default in OpenRC init system. After compiling kernel and Docker I wanted to check if Docker is working so I typed docker info in terminal and I got error. I have decided to check what is wrong and I need your help with solving issue.

Steps to reproduce the issue:

  1. Issue the docker version command.
  2. Try get Docker system-wide informations using docker info.
  3. Check Docker daemon status.
  4. Check Docker logs.

Describe the results you received:
In the output of docker version (see below) you can see error Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?. The same message appears if I try get Docker system-wide informations. The same error appears if I try run the same command prepending by sudo, so this error applies to daemon. I tried to check if there a mistake in Docker daemon privileges. Based on these messages I am able to say that maybe Docker daemon not running. I checked daemon status to make sure. Docker daemon is crashed. To see the reason, I looked at the logs.

Output of cat /var/log/docker.log:

pecan@tux ~ $ cat /var/log/docker.log 
time="2017-10-07T14:52:13.178261811+02:00" level=info msg="libcontainerd: new containerd process, pid: 32311" 
time="2017-10-07T14:52:14.434232306+02:00" level=info msg="Graph migration to content-addressability took 0.00 seconds" 
time="2017-10-07T14:52:14.434413425+02:00" level=warning msg="Your kernel does not support cgroup blkio weight" 
time="2017-10-07T14:52:14.434423960+02:00" level=warning msg="Your kernel does not support cgroup blkio weight_device" 
time="2017-10-07T14:52:14.434759986+02:00" level=info msg="Loading containers: start." 
time="2017-10-07T14:52:14.437180876+02:00" level=info msg="Firewalld running: false" 
Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network

Describe the results you expected:

docker info should return Docker system-wide informations instead of Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.

Expected output of docker version:

pecan@tux ~ $ docker version
Client:
 Version:      17.03.2-ce
 API version:  1.27
 Go version:   go1.9.1
 Git commit:   f5ec1e2
 Built:        Sat Oct  7 14:50:59 2017
 OS/Arch:      linux/amd64

Additional information you deem important (e.g. issue happens only occasionally):

Output of docker version:

pecan@tux ~ $ docker version
Client:
 Version:      17.03.2-ce
 API version:  1.27
 Go version:   go1.9.1
 Git commit:   f5ec1e2
 Built:        Sat Oct  7 14:50:59 2017
 OS/Arch:      linux/amd64
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Output of docker info:

pecan@tux ~ $ docker info
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Output of sudo docker info:

pecan@tux ~ $ sudo docker info
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Output of sudo service docker status:

pecan@tux ~ $ sudo service docker status
 * status: crashed

Additional environment details (AWS, VirtualBox, physical, etc.):
I am using Gentoo as Host OS for Docker containers. I have compiled kernel using instructions on page https://wiki.gentoo.org/wiki/Docker#Kernel and I have installed Docker from Gentoo repository.

Host system informations:

pecan@tux ~ $ uname -a
Linux tux 4.12.12-gentoo #8 SMP Sat Oct 7 13:58:47 CEST 2017 x86_64 Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHz GenuineIntel GNU/Linux

I have disabled iptables and ip6tables because firewall is not actually properly configured. I am connecting to internet through VPN and I am using 8.8.8.8 and 8.8.4.4 DNS providers. I have running Tor and Privoxy daemons and I am using OpenRC init system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions