Rancher supported docker versions:
1.12.6
1.13.1
17.03.2
Ubuntu 18.04 LTS docker versions: (snap or docker.io)
docker 17.06.2-ce
Rancher and Ubuntu are partners, right?
Best to sync about the possible Ubuntu docker versions for Rancher or make Rancher compatible with Ubuntu docker version 17.06.2-ce.
Hey,
I have the same problem with supported docker versions…
I’m pretty sure that it also works with 17.06.x, but it’s not only Rancher not supporting it, it’s also Kubernetes not having versions above 17.03.x validated:
As of v1.9, Docker versions 1.11.2 to 1.13.1 and 17.03.x have been validated (didn’t change in 1.10 or 1.11).
I “co-signed” your post Luc, hopefully there will be a fix of some kind soon.
I’m currently running an HA-Rancher setup on Ubuntu 18.04 Hosts.
Workarounds needed:
- Docker Version
- DNS Problems in Kubernetes
- Problem: Ubuntu 18.04 is a systemd-resolved based system with a 172.0.0.53 entry in /etc/resolv.conf that causes kube-dns/core-dns to fail in kubelets
- Workaround:
sudo rm /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
- References:
With those 2 workardounds, Rancher is working just fine in an HA Setup right now
Still I hope that this will be fixed soon, so that we can use it without workarounds
1 Like
There is a change, Version 17.03.2-ce is available via snap.
see also:
https://ubuntuforums.org/showthread.php?t=2392597&p=13769623#post13769623
Info snap
snap info docker -> you see in the list 17.03/stable -> 17.06.2-ce
sudo snap install docker --channel=17.03/stable
If a newer version of docker is installed you can go back via:
sudo snap refresh docker --channel=17.03/stable
But it should be better if ubuntu 18.04 uses a default kubernetes docker version in snap!
For me it didn’t work using the snap as then, the kubelets couldn’t access /opt/cni, and the snap version of docker seemed to have problems accessing files outside the homefolder before (https://github.com/docker/docker-snap/issues/8), which might also apply here…
Did it work well for you?
I’m using Ubuntu 18.04 and after do the thing on “/etc/resolv.conf” solve the issues, thank you so much.
Looks like they’re bringing the fix into Kubernetes 1.11 this weekend
Source: https://github.com/kubernetes/kubeadm/issues/845
It’s possible to install docker 17.03 in Ubuntu 18.04 (Bionic) by binary package. I’ve created an ansible role to do this, you can access by this link:
https://galaxy.ansible.com/mayconfsbrito/ansible_docker_bin
Anyway, I will post here the task of this role to guide you in this process, because I needed to configure some steps (like storage driver, docker group) that aren’t explicit in the documentation.
I used the documentation below:
Install from binary:
Post install: