Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which kubernetes version is supported in docker version 18.09

I am using Raspberry pi for kubernetes cluster setup. I was using below docker version:

Client:
 Version:           18.06.1-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        e68fc7a
 Built:             Tue Aug 21 17:30:52 2018
 OS/Arch:           linux/arm
 Experimental:      false

Server:
 Engine:
 Version:          18.06.1-ce
 API version:      1.38 (minimum version 1.12)
 Go version:       go1.10.3
 Git commit:       e68fc7a
 Built:            Tue Aug 21 17:26:37 2018
 OS/Arch:          linux/arm
 Experimental:     false

Looks like now the docker version latest is 18.09.0 and the latest kubernetes version is not supporting this docker version. I have even tried installing some older version of kube like 1.9.7 or 1.9.6 but while initiating the kubeadm init, I am getting the below error:

[ERROR SystemVerification]: unsupported docker version: 18.09.0
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`

Which version should I specify for kubernetes and docker to run properly. Also how can we specify version while insatlling docker. I normally use below command to install docker:

curl -sSL get.docker.com | sh 
like image 562
S Andrew Avatar asked Nov 12 '18 06:11

S Andrew


People also ask

What version of Docker does Kubernetes support?

Docker has been the big name when it comes to building and running containers, and Kubernetes has been the big name when it comes to managing and orchestrating them. It might seem a bit shocking to hear that Kubernetes is deprecating support for Docker as a container runtime starting with Kubernetes version 1.20.

Is Docker supported by Kubernetes?

Docker was the first container runtime used by Kubernetes. This is one of the reasons why Docker is so familiar to many Kubernetes users and enthusiasts. Docker support was hardcoded into Kubernetes – a component the project refers to as dockershim.

What is current Docker version?

20.10. 16. This release of Docker Engine fixes a regression in the Docker CLI builds for macOS, fixes an issue with docker stats when using containerd 1.5 and up, and updates the Go runtime to include a fix for CVE-2022-29526.


1 Answers

In Kubernetes there is nothing like supported. Instead of it they use validated - it means that all features were tested and validated with some Docker version.

And validated Docker versions are still the same from Kubernetes version 1.8 until 1.11: Docker 1.11.2 to 1.13.1 and 17.03.x. See here: https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.8.md#external-dependencies and here https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.11.md#external-dependencies

Starting from Kubernetes version 1.12 Docker 17.06, 17.09 and 18.06 started to be also validated. See here: https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.12.md#external-dependencies

As I know final version of Docker 18.09 was released 4 days ago so here we cannot expect this version to be validated in Kubernetes now.

Update (9.4.2019): Docker 18.09 is validated against newly released Kubernetes 1.14: https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.14.md#external-dependencies


You can specify exact Docker version for the get.docker.com script by VERSION variable:

export VERSION=18.03 && curl -sSL get.docker.com | sh
like image 180
cgrim Avatar answered Oct 12 '22 03:10

cgrim