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.mine
parent
3d725c0717
commit
1e2da78a86
16
README.md
16
README.md
|
|
@ -82,6 +82,22 @@ K9s is available on Linux, macOS and Windows platforms.
|
|||
|
||||
---
|
||||
|
||||
## 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
|
||||
|
||||
* K9s uses 256 colors terminal mode. On `Nix system make sure TERM is set accordingly.
|
||||
|
|
|
|||
Loading…
Reference in New Issue