Closed NickYan7 closed 2 years ago
Fine, I work out finally...
To get the result by executing docker run
, we can execute the command without --rm
, then execute docker logs
.
such as:
docker run --name kube-test -it --network host xxx/kube-hunter
then:
docker logs kube-test
What are you trying to achieve
To get a report file, or redirect result to a file when I use kube-hunter by
docker run
.Minimal example (if applicable)
Nice job! And how can I redirect the result when I use docker to deploy the kube-hunter? Such as I execute
docker run -it --rm --network host xxx/kube-hunter
, the--log-file
is not work... If I executedocker run -it --rm --network host xxx/kube-hunter > ./result.txt
, it won't accept the any parameter so that I can't use kube-hunter by option 2 (Interface Scaning).I also tried![Screenshot 2021-08-24 δΈε3 12 15](https://user-images.githubusercontent.com/27906343/130574540-438bbbcc-b25f-4cdd-9014-9da3b03e62f5.jpg)
echo 2 | docker run -it --rm --network host xxx/kube-hunter > ./scan_result.txt
, it is not work although... πCheck this please, thanks a lot
@milindchawre