Skip to content

Commit

Permalink
Document how to configure the docker host (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada authored Oct 10, 2023
1 parent 68ef165 commit 29f3d14
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion doc/user_guide/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -669,8 +669,11 @@ If key generation steps inside the Docker container are slow, installing the `rn
```bash
sudo apt install rng-tools
```
## Configuration

## Reusing Container for Speedup
Exasol testcontainers uses the configuration of Testcontainers in file `~/.testcontainers.properties`. See the [Testcontainers documentation](https://java.testcontainers.org/features/configuration/) for details.

### Reusing Container for Speedup

Exasol testcontainers can reuse the running container to avoid the startup delay.
For that you need to append `withReuse(true)` at container creation.
Expand All @@ -689,6 +692,16 @@ You can find the container id using `docker ps` command and terminate it by runn

Please note that the reuse capability works reliably with Exasol version 7 and above. We disabled that option for older versions.

### Use Docker Running in a Virtual Machine

If your Docker server is running in a virtual machine, you can configure exasol-testcontainer to use it by adding the following line to `~/.testcontainers.properties`, no need to configure environment variables.

```properties
docker.host=tcp://192.168.56.6:2375
```

Adapt IP address and port to your setup. See the Testcontainers documentation for details on [Docker host detection](https://java.testcontainers.org/features/configuration/#customizing-docker-host-detection).

## Troubleshooting

### Warning: Failure when attempting to lookup auth config
Expand Down

0 comments on commit 29f3d14

Please sign in to comment.