You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| DOCKER_HOST | tcp://docker:2375 | Set the URL of the docker daemon |
26
+
| DOCKER_TLS_VERIFY | 1 | Enable/disable TLS communication with the docker daemon |
27
+
| DOCKER_CERT_PATH | /some/path | Configures the path to the files used for TLS verification |
28
+
| DOCKER_CONFIG | /some/path | Configures the path to the config.json file for authentication |
29
29
| DOCKER_AUTH_CONFIG |`{"auths":{"https://registry.example.com":{"username":"","password":""}}}`| JSON string representation of the config.json file, takes precedence for authentication |
30
30
31
31
## Testcontainers
32
32
33
33
Configuration of Testcontainers and its behaviours:
Testcontainers supports automatic substitution of Docker image names.
97
+
98
+
This allows replacement of an image name specified in test code with an alternative name - for example, to replace the name of a Docker Hub image dependency with an alternative hosted on a private image registry.
99
+
100
+
This is advisable to avoid Docker Hub rate limiting, and some companies will prefer this for policy reasons.
101
+
102
+
You can then configure Testcontainers to apply the prefix `registry.mycompany.com/mirror/` to every image that it tries to pull from Docker Hub. This can be done by setting the environment variable `TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX=registry.mycompany.com/mirror/`.
0 commit comments