Archive for June, 2018

Recently I updated to Ubuntu 18.04 Bionic Beaver and tried to install latest docker-ce on that laptop – I expected more-less smooth process, but find some interesting blockers during installation process. So let me share my experience – hope that it will save others time. In default Ubuntu repository I find docker v.15 and docker-ce v.17, but it’s obviously not my choice when I can install latest one 18.05-rc1 🙂 But actually even if you install docker from default repository you’ll struggle with same issues – so you may skip installation part and go ‘make it work’ part instead.

Install from default Ubuntu repository

In my case I can easily install docker 1.17 with sudo apt-get install docker.io
or docker 1.5 with thatsudo apt-get install docker
Actually I highly recommend to use apt-cache show command to figure out which version you’re trying to install before install itsudo apt-cache show docker.io

Make it work

Root cause of this problem is that I’m running VPN client on my laptop on the same time and Docker daemon is unable to get network access to find suitable network range to use for container’s network. Actually fix can be shutdown VPN client ( not my case) or manually add network interface bridge and assign a network range for this bridge.ip link add name docker0 type bridge
ip addr add dev docker0 172.17.0.1/16
One thing that you will lost all these configuration after restart, so you need to choice VPN or add this onto startup/run every time manually.