Kubespray: Ubuntu 18.04 LTS docker installation failure

Created on 22 May 2018  路  3Comments  路  Source: kubernetes-sigs/kubespray

BUG REPORT

Environment:

  • Vagrant box
  • Ubuntu 18.04 LTS
  • Ansible 2.5.2
  • Kubespray v2.5.0
  • Calico

default cluster inventory

import_playbook: roles/kubespray/cluster.yml

Ubuntu 18.04 contains different docker package versions and repositories.

Most helpful comment

Hi !
I finished installation by commenting docker role and just install docker.io from Ubuntu universe repo. I remember that was the recommended way to do with Kubeadm two month ago, in order to not have compatibility issues with too newer versions of Docker.

Are you interrested by a PR in this way ?

All 3 comments

It's probably not the ideal solution but if you update roles/docker/vars/ubuntu.yml to include an additional version like like '17.12-bionic': docker.io=17.12.1-0ubuntu1 and then set the docker and docker se linux versioning in roles/docker/defaults/main.yml look like the code below you should be able to get it to install.
docker_version: '17.12-bionic'
docker_selinux_version: '17.12-bionic'

You can check out an example of what worked for me at https://github.com/mgaruccio/kubespray/blob/master/roles/docker/vars/ubuntu.yml and https://github.com/mgaruccio/kubespray/blob/master/roles/docker/defaults/main.yml

If anyone can tell me how this should be changed before submitting a pull request I would greatly appreciate it!

Hi !
I finished installation by commenting docker role and just install docker.io from Ubuntu universe repo. I remember that was the recommended way to do with Kubeadm two month ago, in order to not have compatibility issues with too newer versions of Docker.

Are you interrested by a PR in this way ?

I like that as well.

Trying the hotfix for the time being.

Was this page helpful?
0 / 5 - 0 ratings