Skip to content
Snippets Groups Projects
Unverified Commit 8894b1dc authored by Luke Bond's avatar Luke Bond Committed by GitHub
Browse files

Update README.md

Specify `-t` to get colour in the Docker output.
Added a note about mounting kubectl or kubelet to get the version.
parent ff59938f
No related branches found
No related tags found
No related merge requests found
...@@ -28,15 +28,17 @@ You can choose to ...@@ -28,15 +28,17 @@ You can choose to
You can avoid installing kube-bench on the host by running it inside a container using the host PID namespace. You can avoid installing kube-bench on the host by running it inside a container using the host PID namespace.
``` ```
docker run --pid=host aquasec/kube-bench:latest <master|node> docker run --pid=host -t aquasec/kube-bench:latest <master|node>
``` ```
You can even use your own configs by mounting them over the default ones in `/opt/kube-bench/cfg/` You can even use your own configs by mounting them over the default ones in `/opt/kube-bench/cfg/`
``` ```
docker run --pid=host -v path/to/my-config.yaml:/opt/kube-bench/cfg/config.yaml aquasec/kube-bench:latest <master|node> docker run --pid=host -t -v path/to/my-config.yaml:/opt/kube-bench/cfg/config.yaml aquasec/kube-bench:latest <master|node>
``` ```
> Note: the tests require either the kubelet or kubectl binary in the path in order to know the Kubernetes version. You can pass `-v $(which kubectl):/usr/bin/kubectl` to the above invocations to resolve this.
### Running in a kubernetes cluster ### Running in a kubernetes cluster
Run the master check Run the master check
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment