How kubernetes identifies that docker is the container platform that is to be used

12/3/2019

I have a kubernetes cluster configured. While this configuration is being done we install a container runtime tool for example docker.

But how the kubernetes tool is able to identify that docker is the container runtime that needs to be used while creating containers in the pods ?

-- Vamshi
docker
kubernetes

2 Answers

12/4/2019

Check the below kubelet flags

--container-runtime string
The container runtime to use. Possible values: 'docker', 'remote', 'rkt(deprecated)'. (default "docker")

--container-runtime-endpoint string
[Experimental] The endpoint of remote runtime service. Currently unix socket endpoint is supported on Linux, while npipe and tcp endpoints are supported on windows. Examples:'unix:///var/run/dockershim.sock', 'npipe:////./pipe/dockershim' (default "unix:///var/run/dockershim.sock")

For more details refer the following link ---> https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/

enter image description here

-- P Ekambaram
Source: StackOverflow

12/3/2019

kubelet instances running on the worker nodes know how to talk to possible container runtimes. It has a --container-runtime command line flag that tells which runtime to use.

-- Burak Serdar
Source: StackOverflow