# Ubuntu 18.04 LTS no compatible docker install

**URL:** <https://forums.suse.com/t/ubuntu-18-04-lts-no-compatible-docker-install/10481>\
**Category:** SUSE Rancher Prime\
**Created:** [May 19, 2018, 8:53am UTC](https://forums.suse.com/t/ubuntu-18-04-lts-no-compatible-docker-install/10481 "2018-05-19T08:53:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luc\_Evers](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/luc_evers/32/2745_2.png) [@Luc\_Evers](https://forums.suse.com/u/Luc_Evers)\
**Post date:** [May 19, 2018, 8:53am UTC](https://forums.suse.com/t/ubuntu-18-04-lts-no-compatible-docker-install/10481/1 "2018-05-19T08:53:28Z")

</div>

**Rancher supported docker versions:**

1.12.6  
1.13.1  
17.03.2

**Ubuntu 18.04 LTS docker versions:** (snap or [docker.io](http://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.

---

<div class="post-metadata">

**Author:** ![thklein](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/thklein/32/4095_2.png) [@thklein](https://forums.suse.com/u/thklein)\
**Post date:** [May 22, 2018, 9:15am UTC](https://forums.suse.com/t/ubuntu-18-04-lts-no-compatible-docker-install/10481/2 "2018-05-22T09:15:41Z")

</div>

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:

> <https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.10.md#external-dependencies>

  
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).

---

<div class="post-metadata">

**Author:** ![Luc\_Evers](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/luc_evers/32/2745_2.png) [@Luc\_Evers](https://forums.suse.com/u/Luc_Evers)\
**Post date:** [May 24, 2018, 6:59am UTC](https://forums.suse.com/t/ubuntu-18-04-lts-no-compatible-docker-install/10481/3 "2018-05-24T06:59:08Z")

</div>

_Ubuntu Forum:_

[https://ubuntuforums.org/showthread.php?t=2392597&p=13769623#post13769623](https://ubuntuforums.org/showthread.php?t=2392597&p=13769623#post13769623)

---

<div class="post-metadata">

**Author:** ![SnorreSelmer](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/snorreselmer/32/3948_2.png) [@SnorreSelmer](https://forums.suse.com/u/SnorreSelmer)\
**Post date:** [May 24, 2018, 7:09am UTC](https://forums.suse.com/t/ubuntu-18-04-lts-no-compatible-docker-install/10481/4 "2018-05-24T07:09:16Z")

</div>

I “co-signed” your post Luc, hopefully there will be a fix of some kind soon.

---

<div class="post-metadata">

**Author:** ![thklein](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/thklein/32/4095_2.png) [@thklein](https://forums.suse.com/u/thklein)\
**Post date:** [May 24, 2018, 7:20am UTC](https://forums.suse.com/t/ubuntu-18-04-lts-no-compatible-docker-install/10481/5 "2018-05-24T07:20:22Z")

</div>

I’m currently running an HA-Rancher setup on Ubuntu 18.04 Hosts.  
Workarounds needed:

1. Docker Version

- Install 17.03.2 from binaries: [https://docs.docker.com/install/linux/docker-ce/binaries/#install-static-binaries](https://docs.docker.com/install/linux/docker-ce/binaries/#install-static-binaries)  
-\> I did this using an Ansible Playbook

1. 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:
  - Open issue in kubeadm: [https://github.com/kubernetes/kubeadm/issues/273](https://github.com/kubernetes/kubeadm/issues/273)
  - issue with workaround: [https://github.com/kubernetes/kubeadm/issues/787](https://github.com/kubernetes/kubeadm/issues/787)
  - Rancher issue: [https://github.com/rancher/rancher/issues/13504](https://github.com/rancher/rancher/issues/13504)

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 🙂

---

<div class="post-metadata">

**Author:** ![Luc\_Evers](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/luc_evers/32/2745_2.png) [@Luc\_Evers](https://forums.suse.com/u/Luc_Evers)\
**Post date:** [May 25, 2018, 9:09am UTC](https://forums.suse.com/t/ubuntu-18-04-lts-no-compatible-docker-install/10481/6 "2018-05-25T09:09:03Z")

</div>

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](http://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!

---

<div class="post-metadata">

**Author:** ![thklein](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/thklein/32/4095_2.png) [@thklein](https://forums.suse.com/u/thklein)\
**Post date:** [May 30, 2018, 11:19am UTC](https://forums.suse.com/t/ubuntu-18-04-lts-no-compatible-docker-install/10481/7 "2018-05-30T11:19:09Z")

</div>

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](https://github.com/docker/docker-snap/issues/8)), which might also apply here…  
Did it work well for you?

---

<div class="post-metadata">

**Author:** ![jadsonlourenco](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jadsonlourenco/32/4120_2.png) [@jadsonlourenco](https://forums.suse.com/u/jadsonlourenco)\
**Post date:** [May 30, 2018, 8:48pm UTC](https://forums.suse.com/t/ubuntu-18-04-lts-no-compatible-docker-install/10481/8 "2018-05-30T20:48:28Z")

</div>

I’m using Ubuntu 18.04 and after do the thing on “/etc/resolv.conf” solve the issues, thank you so much.

---

<div class="post-metadata">

**Author:** ![thklein](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/thklein/32/4095_2.png) [@thklein](https://forums.suse.com/u/thklein)\
**Post date:** [May 31, 2018, 6:05am UTC](https://forums.suse.com/t/ubuntu-18-04-lts-no-compatible-docker-install/10481/9 "2018-05-31T06:05:48Z")

</div>

Looks like they’re bringing the fix into Kubernetes 1.11 this weekend 🙂  
Source: [https://github.com/kubernetes/kubeadm/issues/845](https://github.com/kubernetes/kubeadm/issues/845)

---

<div class="post-metadata">

**Author:** ![mayconfsbrito](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@mayconfsbrito](https://forums.suse.com/u/mayconfsbrito)\
**Post date:** [September 13, 2018, 5:46am UTC](https://forums.suse.com/t/ubuntu-18-04-lts-no-compatible-docker-install/10481/10 "2018-09-13T05:46:43Z")

</div>

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](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.

> <https://github.com/mayconfsbrito/ansible-docker-bin/blob/master/tasks/main.yml>

I used the documentation below:

Install from binary:

> **[Install Docker Engine from binaries](https://docs.docker.com/engine/installation/linux/docker-ce/binaries/)**
>
> Instructions for installing Docker as a binary. Mostly meant for hackers who want to try out Docker on a variety of environments.

Post install:

> **[Post-installation steps for Linux](https://docs.docker.com/install/linux/linux-postinstall/)**
>
> Optional post-installation steps for Linux
