Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What version of Docker is my Kubernetes running on?

Tags:

kubernetes

Kubernetes uses Docker, and kubelet dictates the compatible Docker versions for any given cluster.

My question is, given a Kubernetes cluster that is already configured and running, how would I find out what version of Docker is running in the cluster if I don't have direct access to the nodes?

like image 986
Cory Klein Avatar asked Dec 05 '17 20:12

Cory Klein


People also ask

What version of Docker does Kubernetes support?

Your container runtime must support at least v1alpha2 of the container runtime interface. Kubernetes 1.25 defaults to using v1 of the CRI API.

How do I tell what version of Kubernetes I am running?

The simplest way of checking a cluster's Kubernetes version is to use the kubectl version command. This command will output information for the kubectl client and the Kubernetes cluster. The Server Version is the version of Kubernetes your cluster is running.

Is Kubernetes running on Docker?

The Kubernetes server runs locally within your Docker instance, is not configurable, and is a single-node cluster. It runs within a Docker container on your local system, and is only for local testing.


1 Answers

You can find container runtime and its version using the following:

kubectl get node <node> -o jsonpath="{.status.nodeInfo.containerRuntimeVersion}"
like image 198
nickgryg Avatar answered Dec 10 '22 22:12

nickgryg