View previous topic :: View next topic |
Author |
Message |
peter4 Guru
Joined: 19 Jul 2005 Posts: 359 Location: Wroclaw, Poland
|
Posted: Thu Jan 19, 2017 11:22 am Post subject: can't get Docker to run on Gentoo |
|
|
I'm trying to install Docker on my Gentoo, but it keeps crashing on startup. It always fails with "Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network"
If I run it through /etc/init.d/docker this shows up in /var/log/docker.log:
Code: | time="2017-01-18T18:44:30.169525093+01:00" level=info msg="libcontainerd: new containerd process, pid: 30966"
time="2017-01-18T18:44:31.173845859+01:00" level=error msg="Failed to built-in GetDriver graph aufs /var/lib/docker"
time="2017-01-18T18:44:31.173865114+01:00" level=error msg="Failed to built-in GetDriver graph btrfs /var/lib/docker"
time="2017-01-18T18:44:31.173901551+01:00" level=error msg="Failed to built-in GetDriver graph overlay2 /var/lib/docker"
time="2017-01-18T18:44:31.173908131+01:00" level=error msg="Failed to built-in GetDriver graph overlay /var/lib/docker"
Error starting daemon: error initializing graphdriver: devicemapper: Error running deviceCreate (CreatePool) dm_task_run failed
time="2017-01-18T18:47:40.399752060+01:00" level=info msg="libcontainerd: new containerd process, pid: 31444"
time="2017-01-18T18:47:41.441474061+01:00" level=error msg="[graphdriver] prior storage driver devicemapper failed: devicemapper: Error running deviceCreate (CreatePool) dm_task_run failed"
Error starting daemon: error initializing graphdriver: devicemapper: Error running deviceCreate (CreatePool) dm_task_run failed
time="2017-01-18T18:51:02.693448181+01:00" level=info msg="libcontainerd: new containerd process, pid: 31948"
time="2017-01-18T18:51:03.719494564+01:00" level=error msg="[graphdriver] prior storage driver devicemapper failed: devicemapper: Error running deviceCreate (CreatePool) dm_task_run failed"
Error starting daemon: error initializing graphdriver: devicemapper: Error running deviceCreate (CreatePool) dm_task_run failed
time="2017-01-19T11:38:09.791014341+01:00" level=info msg="libcontainerd: new containerd process, pid: 4816"
time="2017-01-19T11:38:10.833137724+01:00" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section."
time="2017-01-19T11:38:10.868714531+01:00" level=warning msg="devmapper: XFS is not supported in your system. Either the kernel doesn't support it or mkfs.xfs is not in your PATH. Defaulting to ext4 filesystem"
time="2017-01-19T11:38:10.872473650+01:00" level=info msg="devmapper: Creating filesystem ext4 on device docker-8:33-2122881-base"
time="2017-01-19T11:38:11.578229996+01:00" level=info msg="devmapper: Successfully created filesystem ext4 on device docker-8:33-2122881-base"
time="2017-01-19T11:38:11.620057299+01:00" level=info msg="[graphdriver] using prior storage driver: devicemapper"
time="2017-01-19T11:38:11.661658545+01:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2017-01-19T11:38:11.662166793+01:00" level=info msg="Loading containers: start."
time="2017-01-19T11:38:11.667172391+01:00" level=info msg="Firewalld running: false"
Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network
time="2017-01-19T11:41:01.547142136+01:00" level=info msg="libcontainerd: new containerd process, pid: 6484"
time="2017-01-19T11:41:02.570039707+01:00" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section."
time="2017-01-19T11:41:02.583022028+01:00" level=warning msg="devmapper: Base device already exists and has filesystem ext4 on it. User specified filesystem will be ignored."
time="2017-01-19T11:41:02.609233704+01:00" level=info msg="[graphdriver] using prior storage driver: devicemapper"
time="2017-01-19T11:41:02.616468952+01:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2017-01-19T11:41:02.616731234+01:00" level=info msg="Loading containers: start."
time="2017-01-19T11:41:02.619666258+01:00" level=info msg="Firewalld running: false"
Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network
time="2017-01-19T11:42:28.575587419+01:00" level=info msg="libcontainerd: new containerd process, pid: 6835"
time="2017-01-19T11:42:29.584585721+01:00" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section."
time="2017-01-19T11:42:29.597875371+01:00" level=warning msg="devmapper: Base device already exists and has filesystem ext4 on it. User specified filesystem will be ignored."
time="2017-01-19T11:42:29.624029686+01:00" level=info msg="[graphdriver] using prior storage driver: devicemapper"
time="2017-01-19T11:42:29.630425197+01:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2017-01-19T11:42:29.631456672+01:00" level=info msg="Loading containers: start."
time="2017-01-19T11:42:29.633524360+01:00" level=info msg="Firewalld running: false"
Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network
time="2017-01-19T11:45:51.147298876+01:00" level=info msg="libcontainerd: new containerd process, pid: 10304"
time="2017-01-19T11:45:52.160152653+01:00" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section."
time="2017-01-19T11:45:52.175073696+01:00" level=warning msg="devmapper: Base device already exists and has filesystem ext4 on it. User specified filesystem will be ignored."
time="2017-01-19T11:45:52.198045190+01:00" level=info msg="[graphdriver] using prior storage driver: devicemapper"
time="2017-01-19T11:45:52.204269008+01:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2017-01-19T11:45:52.204536870+01:00" level=info msg="Loading containers: start."
time="2017-01-19T11:45:52.206675249+01:00" level=info msg="Firewalld running: false"
Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network
time="2017-01-19T12:11:55.280409505+01:00" level=info msg="libcontainerd: new containerd process, pid: 5584"
time="2017-01-19T12:11:56.304265476+01:00" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section."
time="2017-01-19T12:11:56.323836736+01:00" level=warning msg="devmapper: Base device already exists and has filesystem ext4 on it. User specified filesystem will be ignored."
time="2017-01-19T12:11:56.350454121+01:00" level=info msg="[graphdriver] using prior storage driver: devicemapper"
time="2017-01-19T12:11:56.360674410+01:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2017-01-19T12:11:56.361275171+01:00" level=info msg="Loading containers: start."
time="2017-01-19T12:11:56.366570942+01:00" level=info msg="Firewalld running: false"
Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network
time="2017-01-19T12:13:57.549615906+01:00" level=info msg="libcontainerd: new containerd process, pid: 6602"
time="2017-01-19T12:13:58.559298820+01:00" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section."
time="2017-01-19T12:13:58.569395146+01:00" level=warning msg="devmapper: Base device already exists and has filesystem ext4 on it. User specified filesystem will be ignored."
time="2017-01-19T12:13:58.600607694+01:00" level=info msg="[graphdriver] using prior storage driver: devicemapper"
time="2017-01-19T12:13:58.607073889+01:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2017-01-19T12:13:58.607939794+01:00" level=info msg="Loading containers: start."
time="2017-01-19T12:13:58.609999196+01:00" level=info msg="Firewalld running: false"
Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network
time="2017-01-19T12:18:59.916880928+01:00" level=info msg="libcontainerd: new containerd process, pid: 7649"
time="2017-01-19T12:19:00.928227824+01:00" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section."
time="2017-01-19T12:19:00.944523702+01:00" level=warning msg="devmapper: Base device already exists and has filesystem ext4 on it. User specified filesystem will be ignored."
time="2017-01-19T12:19:00.973583480+01:00" level=info msg="[graphdriver] using prior storage driver: devicemapper"
time="2017-01-19T12:19:00.988541843+01:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2017-01-19T12:19:00.988822158+01:00" level=info msg="Loading containers: start."
time="2017-01-19T12:19:00.991256131+01:00" level=info msg="Firewalld running: false"
Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network
|
If I start it manually va dockerd -D:
Code: | # dockerd -D
DEBU[0000] docker group found. gid: 979
DEBU[0000] Listener created for HTTP on unix (/var/run/docker.sock)
INFO[0000] libcontainerd: new containerd process, pid: 7944
WARN[0000] containerd: low RLIMIT_NOFILE changing to max current=1024 max=4096
DEBU[0000] containerd: read past events count=0
DEBU[0000] containerd: supervisor running cpus=8 memory=15962 runtime=docker-runc runtimeArgs=[] stateDir=/var/run/docker/libcontainerd/containerd
DEBU[0000] containerd: grpc api on /var/run/docker/libcontainerd/docker-containerd.sock
DEBU[0000] libcontainerd: containerd health check returned error: rpc error: code = 14 desc = grpc: the connection is unavailable
DEBU[0001] libcontainerd: containerd health check returned error: rpc error: code = 14 desc = grpc: the connection is unavailable
DEBU[0001] Using default logging driver json-file
DEBU[0001] Golang's threads limit set to 114300
DEBU[0001] devicemapper: driver version is 4.35.0
DEBU[0001] devmapper: Generated prefix: docker-8:33-2122881
DEBU[0001] devmapper: Checking for existence of the pool docker-8:33-2122881-pool
DEBU[0001] devmapper: Pool doesn't exist. Creating it.
DEBU[0001] devmapper: loadDeviceFilesOnStart()
DEBU[0001] devmapper: Loading data for file /var/lib/docker/devicemapper/metadata/base
DEBU[0001] devmapper: Skipping file /var/lib/docker/devicemapper/metadata/deviceset-metadata
DEBU[0001] devmapper: Skipping file /var/lib/docker/devicemapper/metadata/transaction-metadata
DEBU[0001] devmapper: loadDeviceFilesOnStart() END
DEBU[0001] devmapper: constructDeviceIDMap()
DEBU[0001] devmapper: Added deviceId=1 to DeviceIdMap
DEBU[0001] devmapper: constructDeviceIDMap() END
WARN[0001] devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section.
DEBU[0001] devmapper: activateDeviceIfNeeded()
DEBU[0001] devmapper: UUID for device: /dev/mapper/docker-8:33-2122881-base is:efe4f577-3d19-43ed-b2d8-b21c878c8822
WARN[0001] devmapper: Base device already exists and has filesystem ext4 on it. User specified filesystem will be ignored.
DEBU[0001] devmapper: deactivateDevice START()
DEBU[0001] devmapper: removeDevice START(docker-8:33-2122881-base)
DEBU[0001] devmapper: removeDevice END(docker-8:33-2122881-base)
DEBU[0001] devmapper: deactivateDevice END()
INFO[0001] [graphdriver] using prior storage driver: devicemapper
DEBU[0001] Using graph driver devicemapper
DEBU[0001] Max Concurrent Downloads: 3
DEBU[0001] Max Concurrent Uploads: 5
INFO[0001] Graph migration to content-addressability took 0.00 seconds
INFO[0001] Loading containers: start.
DEBU[0001] Option Experimental: false
DEBU[0001] Option DefaultDriver: bridge
DEBU[0001] Option DefaultNetwork: bridge
INFO[0001] Firewalld running: false
DEBU[0001] /sbin/iptables, [--wait --version]
DEBU[0001] /sbin/iptables, [--wait -t nat -D PREROUTING -m addrtype --dst-type LOCAL -j DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t nat -D OUTPUT -m addrtype --dst-type LOCAL ! --dst 127.0.0.0/8 -j DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t nat -D OUTPUT -m addrtype --dst-type LOCAL -j DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t nat -D PREROUTING]
DEBU[0001] /sbin/iptables, [--wait -t nat -D OUTPUT]
DEBU[0001] /sbin/iptables, [--wait -t nat -F DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t nat -X DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t filter -F DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t filter -X DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t filter -F DOCKER-ISOLATION]
DEBU[0001] /sbin/iptables, [--wait -t filter -X DOCKER-ISOLATION]
DEBU[0001] /sbin/iptables, [--wait -t nat -n -L DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t nat -N DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t filter -n -L DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t filter -N DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t filter -n -L DOCKER-ISOLATION]
DEBU[0001] /sbin/iptables, [--wait -t filter -N DOCKER-ISOLATION]
DEBU[0001] /sbin/iptables, [--wait -t filter -C DOCKER-ISOLATION -j RETURN]
DEBU[0001] /sbin/iptables, [--wait -I DOCKER-ISOLATION -j RETURN]
DEBU[0001] start clean shutdown of all containers with a 15 seconds timeout...
DEBU[0001] devmapper: [deviceset docker-8:33-2122881] Shutdown()
DEBU[0001] devmapper: Shutting down DeviceSet: /var/lib/docker/devicemapper
DEBU[0001] devmapper: deactivateDevice START()
DEBU[0001] devmapper: deactivateDevice END()
DEBU[0001] devmapper: deactivatePool() START
DEBU[0001] devmapper: deactivatePool() END
DEBU[0001] devmapper: [deviceset docker-8:33-2122881] Shutdown() END
DEBU[0001] Cleaning up old mountid : start.
DEBU[0001] Cleaning up old mountid : done.
Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network |
What am I doing wrong? I already enabled all the kernel stuff the ebuild complained about, but it still won't run. |
|
Back to top |
|
|
saboya Guru
Joined: 28 Nov 2006 Posts: 552 Location: Brazil
|
Posted: Thu Jan 19, 2017 11:38 am Post subject: |
|
|
I installed docker just yesterday. I decided to upgrade to the last 1.12 unstable version on portage because the earlier versions would give me warnings about kernel settings that aren't even there anymore on the 4.8 series (I'm on 4.8.17). I don't know what kernel version you are using but maybe using the latest unstable instead of stable will help you out. |
|
Back to top |
|
|
dblaci n00b
Joined: 05 Oct 2004 Posts: 30
|
|
Back to top |
|
|
dblaci n00b
Joined: 05 Oct 2004 Posts: 30
|
|
Back to top |
|
|
oxenfree n00b
Joined: 04 Mar 2017 Posts: 11 Location: Schiller park
|
Posted: Sat Mar 04, 2017 8:28 am Post subject: |
|
|
i'm getting the same issue, has anyone found a solution? other than pulling a pre built binary? _________________ code and stuffs |
|
Back to top |
|
|
oxenfree n00b
Joined: 04 Mar 2017 Posts: 11 Location: Schiller park
|
Posted: Sun Mar 05, 2017 9:20 pm Post subject: Re: can't get Docker to run on Gentoo |
|
|
peter4 wrote: | I'm trying to install Docker on my Gentoo, but it keeps crashing on startup. It always fails with "Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network"
If I run it through /etc/init.d/docker this shows up in /var/log/docker.log:
Code: | time="2017-01-18T18:44:30.169525093+01:00" level=info msg="libcontainerd: new containerd process, pid: 30966"
time="2017-01-18T18:44:31.173845859+01:00" level=error msg="Failed to built-in GetDriver graph aufs /var/lib/docker"
time="2017-01-18T18:44:31.173865114+01:00" level=error msg="Failed to built-in GetDriver graph btrfs /var/lib/docker"
time="2017-01-18T18:44:31.173901551+01:00" level=error msg="Failed to built-in GetDriver graph overlay2 /var/lib/docker"
time="2017-01-18T18:44:31.173908131+01:00" level=error msg="Failed to built-in GetDriver graph overlay /var/lib/docker"
Error starting daemon: error initializing graphdriver: devicemapper: Error running deviceCreate (CreatePool) dm_task_run failed
time="2017-01-18T18:47:40.399752060+01:00" level=info msg="libcontainerd: new containerd process, pid: 31444"
time="2017-01-18T18:47:41.441474061+01:00" level=error msg="[graphdriver] prior storage driver devicemapper failed: devicemapper: Error running deviceCreate (CreatePool) dm_task_run failed"
Error starting daemon: error initializing graphdriver: devicemapper: Error running deviceCreate (CreatePool) dm_task_run failed
time="2017-01-18T18:51:02.693448181+01:00" level=info msg="libcontainerd: new containerd process, pid: 31948"
time="2017-01-18T18:51:03.719494564+01:00" level=error msg="[graphdriver] prior storage driver devicemapper failed: devicemapper: Error running deviceCreate (CreatePool) dm_task_run failed"
Error starting daemon: error initializing graphdriver: devicemapper: Error running deviceCreate (CreatePool) dm_task_run failed
time="2017-01-19T11:38:09.791014341+01:00" level=info msg="libcontainerd: new containerd process, pid: 4816"
time="2017-01-19T11:38:10.833137724+01:00" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section."
time="2017-01-19T11:38:10.868714531+01:00" level=warning msg="devmapper: XFS is not supported in your system. Either the kernel doesn't support it or mkfs.xfs is not in your PATH. Defaulting to ext4 filesystem"
time="2017-01-19T11:38:10.872473650+01:00" level=info msg="devmapper: Creating filesystem ext4 on device docker-8:33-2122881-base"
time="2017-01-19T11:38:11.578229996+01:00" level=info msg="devmapper: Successfully created filesystem ext4 on device docker-8:33-2122881-base"
time="2017-01-19T11:38:11.620057299+01:00" level=info msg="[graphdriver] using prior storage driver: devicemapper"
time="2017-01-19T11:38:11.661658545+01:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2017-01-19T11:38:11.662166793+01:00" level=info msg="Loading containers: start."
time="2017-01-19T11:38:11.667172391+01:00" level=info msg="Firewalld running: false"
Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network
time="2017-01-19T11:41:01.547142136+01:00" level=info msg="libcontainerd: new containerd process, pid: 6484"
time="2017-01-19T11:41:02.570039707+01:00" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section."
time="2017-01-19T11:41:02.583022028+01:00" level=warning msg="devmapper: Base device already exists and has filesystem ext4 on it. User specified filesystem will be ignored."
time="2017-01-19T11:41:02.609233704+01:00" level=info msg="[graphdriver] using prior storage driver: devicemapper"
time="2017-01-19T11:41:02.616468952+01:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2017-01-19T11:41:02.616731234+01:00" level=info msg="Loading containers: start."
time="2017-01-19T11:41:02.619666258+01:00" level=info msg="Firewalld running: false"
Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network
time="2017-01-19T11:42:28.575587419+01:00" level=info msg="libcontainerd: new containerd process, pid: 6835"
time="2017-01-19T11:42:29.584585721+01:00" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section."
time="2017-01-19T11:42:29.597875371+01:00" level=warning msg="devmapper: Base device already exists and has filesystem ext4 on it. User specified filesystem will be ignored."
time="2017-01-19T11:42:29.624029686+01:00" level=info msg="[graphdriver] using prior storage driver: devicemapper"
time="2017-01-19T11:42:29.630425197+01:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2017-01-19T11:42:29.631456672+01:00" level=info msg="Loading containers: start."
time="2017-01-19T11:42:29.633524360+01:00" level=info msg="Firewalld running: false"
Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network
time="2017-01-19T11:45:51.147298876+01:00" level=info msg="libcontainerd: new containerd process, pid: 10304"
time="2017-01-19T11:45:52.160152653+01:00" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section."
time="2017-01-19T11:45:52.175073696+01:00" level=warning msg="devmapper: Base device already exists and has filesystem ext4 on it. User specified filesystem will be ignored."
time="2017-01-19T11:45:52.198045190+01:00" level=info msg="[graphdriver] using prior storage driver: devicemapper"
time="2017-01-19T11:45:52.204269008+01:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2017-01-19T11:45:52.204536870+01:00" level=info msg="Loading containers: start."
time="2017-01-19T11:45:52.206675249+01:00" level=info msg="Firewalld running: false"
Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network
time="2017-01-19T12:11:55.280409505+01:00" level=info msg="libcontainerd: new containerd process, pid: 5584"
time="2017-01-19T12:11:56.304265476+01:00" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section."
time="2017-01-19T12:11:56.323836736+01:00" level=warning msg="devmapper: Base device already exists and has filesystem ext4 on it. User specified filesystem will be ignored."
time="2017-01-19T12:11:56.350454121+01:00" level=info msg="[graphdriver] using prior storage driver: devicemapper"
time="2017-01-19T12:11:56.360674410+01:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2017-01-19T12:11:56.361275171+01:00" level=info msg="Loading containers: start."
time="2017-01-19T12:11:56.366570942+01:00" level=info msg="Firewalld running: false"
Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network
time="2017-01-19T12:13:57.549615906+01:00" level=info msg="libcontainerd: new containerd process, pid: 6602"
time="2017-01-19T12:13:58.559298820+01:00" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section."
time="2017-01-19T12:13:58.569395146+01:00" level=warning msg="devmapper: Base device already exists and has filesystem ext4 on it. User specified filesystem will be ignored."
time="2017-01-19T12:13:58.600607694+01:00" level=info msg="[graphdriver] using prior storage driver: devicemapper"
time="2017-01-19T12:13:58.607073889+01:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2017-01-19T12:13:58.607939794+01:00" level=info msg="Loading containers: start."
time="2017-01-19T12:13:58.609999196+01:00" level=info msg="Firewalld running: false"
Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network
time="2017-01-19T12:18:59.916880928+01:00" level=info msg="libcontainerd: new containerd process, pid: 7649"
time="2017-01-19T12:19:00.928227824+01:00" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section."
time="2017-01-19T12:19:00.944523702+01:00" level=warning msg="devmapper: Base device already exists and has filesystem ext4 on it. User specified filesystem will be ignored."
time="2017-01-19T12:19:00.973583480+01:00" level=info msg="[graphdriver] using prior storage driver: devicemapper"
time="2017-01-19T12:19:00.988541843+01:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2017-01-19T12:19:00.988822158+01:00" level=info msg="Loading containers: start."
time="2017-01-19T12:19:00.991256131+01:00" level=info msg="Firewalld running: false"
Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network
|
If I start it manually va dockerd -D:
Code: | # dockerd -D
DEBU[0000] docker group found. gid: 979
DEBU[0000] Listener created for HTTP on unix (/var/run/docker.sock)
INFO[0000] libcontainerd: new containerd process, pid: 7944
WARN[0000] containerd: low RLIMIT_NOFILE changing to max current=1024 max=4096
DEBU[0000] containerd: read past events count=0
DEBU[0000] containerd: supervisor running cpus=8 memory=15962 runtime=docker-runc runtimeArgs=[] stateDir=/var/run/docker/libcontainerd/containerd
DEBU[0000] containerd: grpc api on /var/run/docker/libcontainerd/docker-containerd.sock
DEBU[0000] libcontainerd: containerd health check returned error: rpc error: code = 14 desc = grpc: the connection is unavailable
DEBU[0001] libcontainerd: containerd health check returned error: rpc error: code = 14 desc = grpc: the connection is unavailable
DEBU[0001] Using default logging driver json-file
DEBU[0001] Golang's threads limit set to 114300
DEBU[0001] devicemapper: driver version is 4.35.0
DEBU[0001] devmapper: Generated prefix: docker-8:33-2122881
DEBU[0001] devmapper: Checking for existence of the pool docker-8:33-2122881-pool
DEBU[0001] devmapper: Pool doesn't exist. Creating it.
DEBU[0001] devmapper: loadDeviceFilesOnStart()
DEBU[0001] devmapper: Loading data for file /var/lib/docker/devicemapper/metadata/base
DEBU[0001] devmapper: Skipping file /var/lib/docker/devicemapper/metadata/deviceset-metadata
DEBU[0001] devmapper: Skipping file /var/lib/docker/devicemapper/metadata/transaction-metadata
DEBU[0001] devmapper: loadDeviceFilesOnStart() END
DEBU[0001] devmapper: constructDeviceIDMap()
DEBU[0001] devmapper: Added deviceId=1 to DeviceIdMap
DEBU[0001] devmapper: constructDeviceIDMap() END
WARN[0001] devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section.
DEBU[0001] devmapper: activateDeviceIfNeeded()
DEBU[0001] devmapper: UUID for device: /dev/mapper/docker-8:33-2122881-base is:efe4f577-3d19-43ed-b2d8-b21c878c8822
WARN[0001] devmapper: Base device already exists and has filesystem ext4 on it. User specified filesystem will be ignored.
DEBU[0001] devmapper: deactivateDevice START()
DEBU[0001] devmapper: removeDevice START(docker-8:33-2122881-base)
DEBU[0001] devmapper: removeDevice END(docker-8:33-2122881-base)
DEBU[0001] devmapper: deactivateDevice END()
INFO[0001] [graphdriver] using prior storage driver: devicemapper
DEBU[0001] Using graph driver devicemapper
DEBU[0001] Max Concurrent Downloads: 3
DEBU[0001] Max Concurrent Uploads: 5
INFO[0001] Graph migration to content-addressability took 0.00 seconds
INFO[0001] Loading containers: start.
DEBU[0001] Option Experimental: false
DEBU[0001] Option DefaultDriver: bridge
DEBU[0001] Option DefaultNetwork: bridge
INFO[0001] Firewalld running: false
DEBU[0001] /sbin/iptables, [--wait --version]
DEBU[0001] /sbin/iptables, [--wait -t nat -D PREROUTING -m addrtype --dst-type LOCAL -j DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t nat -D OUTPUT -m addrtype --dst-type LOCAL ! --dst 127.0.0.0/8 -j DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t nat -D OUTPUT -m addrtype --dst-type LOCAL -j DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t nat -D PREROUTING]
DEBU[0001] /sbin/iptables, [--wait -t nat -D OUTPUT]
DEBU[0001] /sbin/iptables, [--wait -t nat -F DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t nat -X DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t filter -F DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t filter -X DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t filter -F DOCKER-ISOLATION]
DEBU[0001] /sbin/iptables, [--wait -t filter -X DOCKER-ISOLATION]
DEBU[0001] /sbin/iptables, [--wait -t nat -n -L DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t nat -N DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t filter -n -L DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t filter -N DOCKER]
DEBU[0001] /sbin/iptables, [--wait -t filter -n -L DOCKER-ISOLATION]
DEBU[0001] /sbin/iptables, [--wait -t filter -N DOCKER-ISOLATION]
DEBU[0001] /sbin/iptables, [--wait -t filter -C DOCKER-ISOLATION -j RETURN]
DEBU[0001] /sbin/iptables, [--wait -I DOCKER-ISOLATION -j RETURN]
DEBU[0001] start clean shutdown of all containers with a 15 seconds timeout...
DEBU[0001] devmapper: [deviceset docker-8:33-2122881] Shutdown()
DEBU[0001] devmapper: Shutting down DeviceSet: /var/lib/docker/devicemapper
DEBU[0001] devmapper: deactivateDevice START()
DEBU[0001] devmapper: deactivateDevice END()
DEBU[0001] devmapper: deactivatePool() START
DEBU[0001] devmapper: deactivatePool() END
DEBU[0001] devmapper: [deviceset docker-8:33-2122881] Shutdown() END
DEBU[0001] Cleaning up old mountid : start.
DEBU[0001] Cleaning up old mountid : done.
Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network |
What am I doing wrong? I already enabled all the kernel stuff the ebuild complained about, but it still won't run. |
figured this out today.
the issue is that the install process does not create the docker0 bridge, you have to manually create it. i'm not sure why. here is a bash script you can use.
Code: |
#!/bin/bash
#
# create docker0 bridge
# restart docker systemd service
# confirm new outgoing NAT masquerade is set up
#
# reference
# https://docs.docker.com/engine/userguide/networking/default_network/build-bridges/
#
sudo brctl addbr docker0
sudo ip addr add 192.168.42.1/24 dev docker0
sudo ip link set dev docker0 up
ip addr show docker0
sudo systemctl restart docker
sudo iptables -t nat -L -n
exit(0)
|
if you are running using systemd-232 or higher, you will also need to add this line to your kernel boot options
Code: |
systemd.legacy_systemd_cgroup_controller=yes
|
let me know how it goes, should resolve all your issues running docker _________________ code and stuffs |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|