Merge pull request #706 from mtyurt/docker-run-docs

Add instructions to run Docker container
mine
Fernand Galiana 2020-05-12 07:16:39 -06:00 committed by GitHub
commit 4ffb608a1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -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