-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running docker bench with Docker daemon listen on a specific IP and port #447
Comments
Hi @ppratheesh, currently you can't. docker-bench-security requires access to the docker socket in order do get all required information. |
Hi @konstruktoid But adding socket would override tlsverify which points Docker’s tlscacert flag to a trusted CA certificate.After running docker bench i am getting warning
so the only way to fix the warning 2.11 is to use a Docker authorization plugins |
What do you mean it overrides the tlsverify flag? It should just allow connections on both port :2376 and the socket (which should only be available locally). After running docker-bench, you can remove the socket setting. Yes, Also note that if you're running the official Docker image, it is out-of-date (#405) and you should try running the script or build your own image. |
Closing due to inactivity. |
I have changed the default socket "unix:///var/run/docker.sock" ,which will docker listen to a tcp port and ip address .Here is my daemon.json
But after this i am not able to run the docker bench . I am using the following method
i am guessing docker bench require the /var/run/docker.sock to be mounted to the container .Since my docker daemon listen on tcp port and ip address how can i run docker bench for this
The text was updated successfully, but these errors were encountered: