nodeRegistration.criSocket: Invalid value: "/var/run/dockershim.sock": path is not absolute

8/14/2018

I'm trying to join (WINDOWS Server 2016) nodes(workers) to (RHEL 7.5) master through kubeadm. I'm making it following below tutorials: https://kubernetes.io/docs/setup/independent/install-kubeadm/ https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/ https://docs.microsoft.com/en-us/virtualization/windowscontainers/kubernetes/getting-started-kubernetes-windows

As network connection I use Flannel: https://github.com/Microsoft/SDN/tree/master/Kubernetes/flannel/l2bridge

My master node works as is expected - kubectl get pods --all-namespaces all pods are running. During performing following command on WS2016:

kubeadm join --token <token> <master-ip>:<master-port> --discovery-token-ca-cert-hash sha256:<hash>

I have the error: nodeRegistration.criSocket: Invalid value: "/var/run/dockershim.sock": path is not absolute

The path "/var/run/dockershim.sock" is default in the kubeadm config.

Also on WS2016 I can't do any pull image:

docker run hello-world

Unable to find image 'hello-world:latest' locally C:\Program Files\Docker\docker.exe: Error response from daemon: Get https://registry-1.docker.io/v2/: proxyconnect tcp: up proxy.example.com: no such host.

Useful link: https://kubernetes.io/docs/getting-started-guides/windows/

Also I tried do do it with Windows Server version 1709 but with the same issue. Below I write out details:

Master:

kubeadm version: &version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.2", GitCommit:"bb9ffb1654d4a729bb4cec18ff088eacc153c239", GitTreeState:"clean", BuildDate:"2018-08-07T23:14:39Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}

 Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.2", GitCommit:"bb9ffb1654d4a729bb4cec18ff088eacc153c239", GitTreeState:"clean", BuildDate:"2018-08-07T23:17:28Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.2", GitCommit:"bb9ffb1654d4a729bb4cec18ff088eacc153c239", GitTreeState:"clean", BuildDate:"2018-08-07T23:08:19Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}

    Client:
 Version:           18.06.0-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        0ffa825
 Built:             Wed Jul 18 19:08:18 2018
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.0-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       0ffa825
  Built:            Wed Jul 18 19:10:42 2018
  OS/Arch:          linux/amd64
  Experimental:     false

Worker:

kubeadm version: &version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.1", GitCommit:"b1b29978270dc22fecc592ac55d903350
reeState:"clean", BuildDate:"2018-07-17T18:50:16Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"windows/amd64"}

Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.1", GitCommit:"b1b29978270dc22fecc592ac55d90335045
eState:"clean", BuildDate:"2018-07-17T18:53:20Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"windows/amd64"}
Unable to connect to the server: proxyconnect tcp: dial tcp: lookup proxy.example.com: no such host

Client:
 Version:      17.06.2-ee-16
 API version:  1.30
 Go version:   go1.8.7
 Git commit:   9ef4f0a
 Built:        Thu Jul 26 16:43:19 2018
 OS/Arch:      windows/amd64

Server:
 Engine:
  Version:      17.06.2-ee-16
  API version:  1.30 (minimum version 1.24)
  Go version:   go1.8.7
  Git commit:   9ef4f0a
  Built:        Thu Jul 26 16:52:17 2018
  OS/Arch:      windows/amd64
  Experimental: false

EDIT: I solved problem with docker by creating other VM but still I have: nodeRegistration.criSocket: Invalid value: "/var/run/dockershim.sock": path is not absolute: /var/run/dockershim.sock I've found out, that I need change --cri-socket to tcp://localhost:2375 but I don't know how. The following command doesn't work (on WS2016):

kubeadm config upload from-flags --cri-socket=tcp://localhost:2375 --kubeconfig="C:\k\config"

Anybody know how it to change?

-- Wachuwach
docker
kubeadm
kubernetes
windows-server-2016

0 Answers