Fix For My Docker Install Issue

I haven't been able to install docker on my Ubuntu desktops until now because I kept getting an error. As a workaround, I would do all my builds in a virtual machine. However I now finally have the solution that worked for me.

Turn off your VPN before running the installer or starting the docker daemon.

This solution cane courtesy of codekoala from this github issue post. Thank you codekoala!

Reference Material

To try and help with other people find this post which could be relevant for them, I am going to post some error messages I received below which Google may pick up.

Error output during Install

Setting up cgroupfs-mount (1.2) ...
Setting up docker-engine (1.13.1-0~ubuntu-xenial) ...
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.
dpkg: error processing package docker-engine (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 docker-engine
E: Sub-process /usr/bin/dpkg returned an error code (1)

Output of journalctl -xe

-- Unit docker.service has begun starting up.
Feb 25 06:21:50 stuart-desktop dockerd[27511]: time="2017-02-25T06:21:50.351252590Z" level=info msg="libcontainerd: new containerd process, pid: 27517"
Feb 25 06:21:51 stuart-desktop dockerd[27511]: time="2017-02-25T06:21:51.360563994Z" level=info msg="[graphdriver] using prior storage driver: aufs"
Feb 25 06:21:51 stuart-desktop kernel: aufs 4.x-rcN-20160912
Feb 25 06:21:51 stuart-desktop dockerd[27511]: time="2017-02-25T06:21:51.367623490Z" level=info msg="Graph migration to content-addressability took 0.00 seconds"
Feb 25 06:21:51 stuart-desktop dockerd[27511]: time="2017-02-25T06:21:51.367849605Z" level=warning msg="Your kernel does not support swap memory limit"
Feb 25 06:21:51 stuart-desktop dockerd[27511]: time="2017-02-25T06:21:51.367908878Z" level=warning msg="Your kernel does not support cgroup rt period"
Feb 25 06:21:51 stuart-desktop dockerd[27511]: time="2017-02-25T06:21:51.367915879Z" level=warning msg="Your kernel does not support cgroup rt runtime"
Feb 25 06:21:51 stuart-desktop dockerd[27511]: time="2017-02-25T06:21:51.368319191Z" level=info msg="Loading containers: start."
Feb 25 06:21:51 stuart-desktop kernel: bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
Feb 25 06:21:51 stuart-desktop kernel: Bridge firewalling registered
Feb 25 06:21:51 stuart-desktop kernel: nf_conntrack version 0.5.0 (65536 buckets, 262144 max)
Feb 25 06:21:51 stuart-desktop dockerd[27511]: time="2017-02-25T06:21:51.388862033Z" level=info msg="Firewalld running: false"
Feb 25 06:21:51 stuart-desktop kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Feb 25 06:21:51 stuart-desktop kernel: Initializing XFRM netlink socket
Feb 25 06:21:51 stuart-desktop dockerd[27511]: Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network
Feb 25 06:21:51 stuart-desktop systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Feb 25 06:21:51 stuart-desktop systemd[1]: Failed to start Docker Application Container Engine.
-- Subject: Unit docker.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit docker.service has failed.
-- 
-- The result is failed.
Feb 25 06:21:51 stuart-desktop systemd[1]: docker.service: Unit entered failed state.
Feb 25 06:21:51 stuart-desktop systemd[1]: docker.service: Failed with result 'exit-code'.
Feb 25 06:21:51 stuart-desktop systemd[1]: Reloading.
Feb 25 06:21:51 stuart-desktop systemd[1]: snapd.refresh.timer: Adding 1h 1min 38.423078s random time.
Feb 25 06:21:51 stuart-desktop systemd[1]: apt-daily.timer: Adding 3h 31min 10.571085s random time.
Feb 25 06:21:51 stuart-desktop systemd[1]: Started CUPS Scheduler.
-- Subject: Unit cups.service has finished start-up

Author

Programster

Stuart is a software developer with a passion for Linux and open source projects.

comments powered by Disqus
We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites. More info.