How to start up a Kubernetes cluster using Rocket?

2/28/2016

I'm using a Chromebook Pixel 2, and it's easier to get Rocket working than Docker. I recently installed Rocket 1.1 into /usr/local/bin, and have a clone of the Kubernetes GitHub repo.

When I try to use ./hack/local-up-cluster.sh to start a cluster, it eventually fails with this message:

Failed to successfully run 'docker ps', please verify that docker is installed and $DOCKER_HOST is set correctly.

According to the docs, k8s supports Rocket. Can someone please guide me about how to start a local cluster without a working Docker installation?

Thanks in advance.

-- Chris Drake
kubernetes

2 Answers

2/29/2016

Try running export CONTAINER_RUNTIME="rocket" and then re-running the script.

-- Robert Bailey
Source: StackOverflow

2/29/2016

You need to set three environment variables before running ./hack/local-up-cluster.h:

$ export CONTAINER_RUNTIME=rkt
$ export RKT_PATH=$PATH_TO_RKT_BINARY
$ export RKT_STAGE1_IMAGE=PATH=$PATH_TO_STAGE1_IMAGE

This is described in the docs for getting started with a local rkt cluster.

-- michaelj
Source: StackOverflow