Connection refused attempting to connect to gvmd via socket

Since you mentioned that you are running the containers on macOS perhaps you should read this post for some context.

The good news is that it seems they were able to successfully use Greenbone’s web-interface (GSA) and run scans from the Docker containers installed on macOS. However, their issue was a socket issue related to gvm-cli accessing the same gvmd socket and it could be solved by adding an

Here are some thing you can try to uncover the problem:

  1. Check the comprehensive log output when starting the containers.
$ docker compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition logs -f
  1. Gain a terminal for the container and check the gvmd.sock file.
$ docker compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition exec <container-name> /bin/bash