Skip to content
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

Document how to configure the docker host #237

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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