From 1e2da78a8619622bcf89c8d391ad42c729e6ff57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Tar=C4=B1k=20Yurt?= Date: Sat, 9 May 2020 01:25:44 +0300 Subject: [PATCH] Add instructions to run Docker container Containers with bridge network mode work fine with this. For local clusters, the API server DNS should be resolvable by container. If bridge network doesn't work, host network can be tried. Unfortunately, I couldnt test host networking. Closes #661. --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 261b5e14..b375dd52 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,22 @@ K9s is available on Linux, macOS and Windows platforms. go run main.go ``` +--- + +## Running with Docker + + You can run k9s as a Docker container by mounting your `KUBECONFIG`: + + ```shell + docker run --rm -it -v $KUBECONFIG:/root/.kube/config derailed/k9s + ``` + + For default path it would be: + + ```shell + docker run --rm -it -v ~/.kube/config:/root/.kube/config derailed/k9s + ``` + --- ## PreFlight Checks