kind: improve error messaging for create cluster"

Hi there

I have set up a new Ubuntu server 16.04, installed Go, Golang and Docker however everytime I run go get sigs.k8s.io/kind && kind create cluster

I get Error: could not list clusters: failed to list nodes: exit status 1

What am I missing as I am new to Kubernetes

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 4
  • Comments: 23 (16 by maintainers)

Commits related to this issue

Most upvoted comments

if you do: go install sigs.k8s.io/kind it will probably install in ~/go/bin

but then if you don’t have this folder in PATH you can either:

  • add it to path using your preferred way on linux
  • move the ~/go/bin/kind binary to somewhere like /usr/local/bin

Another fix for this is to add your own user to the docker group.

That was my issue, thank you I followed https://docs.docker.com/install/linux/linux-postinstall/ and removed the need for Sudo

This error message also displays when the Docker daemon is not running. Any way to detect this and have the error message state to start the dameon?

Running: /usr/bin/docker [docker ps -q -a --no-trunc --filter label=io.k8s.sigs.kind.cluster --format {{.Names}}\t{{.Label "io.k8s.sigs.kind.cluster"}}]
Error: could not list clusters: failed to list nodes: exit status 1

a CLI message can potentially link to the user docs / known issues too.