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
{{ message }}
Repository navigation
[Bug]: dockerConfigFile property file not used #10362
It is surprising that dockercompose uses another configuration env var name, but there may be a good reason for that.
Would it be possible to add a dockerConfigFile property here, to match the docker compose code ? That would help a lot integrating testcontainers with wrapper java libraries. With recent java, it is no longer possible to modify environment variable from within a process (it never was a good idea anyway). Being able to update a java system property instead would allow wrapper libraries to easily setup authentication.
Would it be ok for me to propose a PR about that ?
Activity
selliera commentedon Jun 14, 2025
My bad: I confused doc for docker compose and base docker:
What is stated here
https://java.testcontainers.org/supported_docker_environment/#docker-registry-authentication
Is exactly what is implemented in the RegistryAyuthLocator.
It is surprising that dockercompose uses another configuration env var name, but there may be a good reason for that.
Would it be possible to add a dockerConfigFile property here, to match the docker compose code ? That would help a lot integrating testcontainers with wrapper java libraries. With recent java, it is no longer possible to modify environment variable from within a process (it never was a good idea anyway). Being able to update a java system property instead would allow wrapper libraries to easily setup authentication.
Would it be ok for me to propose a PR about that ?