Closed dkade closed 3 years ago
I can see a socket but never used the scripts before, so "real" test has to be done by @dkade. @dkade: how do you interact with the scripts, they don't like to be called as root? My container runs as root, not best practice, I know, do you use another user/group?
@cybermcm you add the user to docker group and you don't need to run the container as root. I run nothing as root. https://docs.docker.com/engine/install/linux-postinstall/
My script is called by the same user that runs the container. To execute stuff inside the container I also don't user the root container user, but the openvas user:
docker exec -i --user gvm openvas bash -c "<cmd>"
Checking now the latest image if everything is working.
Everything is working! :)
I use the https://github.com/greenbone/gvm-tools && https://gvm-tools.readthedocs.io/en/latest/index.html .
My script creates targets, tasks, start them and in the end exports the report. So it's an automated process. It uses the sock to connect to GVM this is the default and recommended: https://gvm-tools.readthedocs.io/en/latest/connectiontypes.html#using-a-unix-domain-socket
Well with the lastest image
gvmd.sock
doesn't exist: