Sergio Marcial
Sergio Marcial

Reputation: 41

Docker error running image hyperkube-amd64:v1.7.0

While trying to run the next Docker command:

docker run \
--net=host \
--pid=host \
--privileged=true \
-d \
gcr.io/google_containers/hyperkube-amd64:v1.7.0 \
/nsenter \
  --target=1 \
  --mount \
  --wd=. \
  -- ./hyperkube kubelet \
    --hostname-override="127.0.0.1" \
    --address="0.0.0.0" \
    --api-servers=http://localhost:8080 \
    --config=etc/kubernetes/manifests \
    --v=2

I am getting an error

nsenter: failed to execute ./hyperkube: No such file or directory

I have been trying a lot of combination, but nothing seems to work, have someone else tried to do this before?

My docker version is

Client:
  Version:      1.12.6
  API version:  1.24
  Go version:   go1.6.4
  Git commit:   78d1802
  Built:        Wed Jan 11 00:23:16 2017
  OS/Arch:      darwin/amd64

Server:
  Version:      1.12.6
  API version:  1.24
  Go version:   go1.6.4
  Git commit:   78d1802
  Built:        Wed Jan 11 00:23:16 2017
  OS/Arch:      linux/amd64

Thanks

Upvotes: 1

Views: 248

Answers (2)

Sergio Marcial
Sergio Marcial

Reputation: 41

I found the solution!

Hyperkube is not designed to run in macOS so i had to use other kind of kubernetes server for local development and that work perfectly:

I am currently using kubeadm-dind-cluster

Upvotes: 1

Eugene Chow
Eugene Chow

Reputation: 1706

kubernetes doesn't support Docker 17.06. Try Docker 1.12.6 instead.

Upvotes: 1

Related Questions