kind: Creating Cluster failed in my dind container.

hi, I install go1.13+ in a dind container.And run kind create cluster, but it seem to be always failed. I find in debug logs there are some errors not expected, such as:

[WARNING CRI]: container runtime is not running: output: NAME:
failed to pull image k8s.gcr.io/kube-apiserver:v1.15.3: output: time="2019-09-30T18:05:07Z" level=fatal msg="failed to connect: failed to connect: context deadline exceeded"...

I don’t know kind how to validate container runtime, my dockerd is running normally. And I also can pull these images manually.

docker info

Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 8
Server Version: 18.06.1-ce
Storage Driver: vfs
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 468a545b9edcd5932818eb9de8e72413e616e86e
runc version: 69663f0bd4b60df09991c08812a60108003fa340
init version: fec3683
Kernel Version: 4.9.0-0.bpo.6-amd64
Operating System: Debian GNU/Linux 8 (jessie) (containerized)
OSType: linux
Architecture: x86_64
CPUs: 40
Total Memory: 125.8GiB
Name: 4d3d5875d428
ID: RXWO:CLTC:FWY4:PQW7:T4OC:KW2N:DVQW:F24T:H4Z6:OMSH:JZGN:KV63
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

kind.log

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 22 (14 by maintainers)

Most upvoted comments

You probably need for docker in docker:

  • the cgroup mount from the linked issue
  • overlay instead of vfs

For the host, I would start to upgrading to a newer docker.

I upgrading docker version to 18.06 in my physical machine, and change the storage driver to overlay2.Indeed kind create cluster successfully. And testing kind in the dind container also passed. Thanks a lot. @BenTheElder @aojea