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
Allow to disable configuration of EnvironmentAndSystemPropertyClientProviderStrategy through Testcontainers (#4387)
Adds the `dockerconfig.source` property that can be used to change the way `EnvironmentAndSystemPropertyClientProviderStrategy` is configured. Additionally, `EnvironmentAndSystemPropertyClientProviderStrategy` is not persistable anymore.
Currently supports the following modes:
* `auto` (which is the default), meaning that the Testcontainers configuration mechanisms can be used to configure docker-java
* `autoIgnoringUserProperties`, same as `auto`, but ignoring values set in the user properties
Copy file name to clipboardExpand all lines: core/src/main/java/org/testcontainers/dockerclient/EnvironmentAndSystemPropertyClientProviderStrategy.java
Copy file name to clipboardExpand all lines: core/src/test/java/org/testcontainers/dockerclient/EnvironmentAndSystemPropertyClientProviderStrategyTest.java
assertEquals("Docker client strategy is implicitly set when docker host property is set", EnvironmentAndSystemPropertyClientProviderStrategy.class.getCanonicalName(), newConfig().getDockerClientStrategyClassName());
0 commit comments