Skip to content

Commit

Permalink
Fixed wording of gvmd Unix socket section
Browse files Browse the repository at this point in the history
  • Loading branch information
k-schlosser authored and bjoernricks committed Aug 22, 2022
1 parent 1ce3353 commit ac5a174
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/common/container/workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,20 @@ docker-compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-editio

Afterwards, you can execute standard bash commands within the running container.

### Expose gvmd Unix Socket for GMP access
### Expose gvmd Unix socket for GMP access

To allow using the {term}`GMP` protocol provided by {term}`gvmd` from the docker
host a [bind mount](https://docs.docker.com/compose/compose-file/compose-file-v3/#volumes)
must be used for the `/run/gvmd` location. To make the gvmd unix socket
available, first of all a directory must be created and the permissions need to
To enable the use of the protocol {term}`GMP` provided by {term}`gvmd` from the docker
host, a [bind mount](https://docs.docker.com/compose/compose-file/compose-file-v3/#volumes)
must be used for the `/run/gvmd` directory. To make the gvmd Unix socket
available, a directory must be created first and the permissions must
be adjusted.

```sh
mkdir -p /tmp/gvm/gvmd
chmod -R 777 /tmp/gvm
```

Next the docker compose file needs to be changed as follows:
In the next step, the docker compose file must be changed as follows:

```diff
gvmd:
Expand Down Expand Up @@ -100,8 +100,8 @@ After restarting the containers with
docker-compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition up -d
```

The unix socket should be available at `/tmp/gvm/gvmd/gvmd.sock`. For example
to use the socket with [gvm-tools](https://github.com/greenbone/gvm-tools) the
the Unix socket should be available at `/tmp/gvm/gvmd/gvmd.sock`. For example,
to use the socket with [gvm-tools](https://github.com/greenbone/gvm-tools), the
following command can be executed:

```bash
Expand Down

0 comments on commit ac5a174

Please sign in to comment.