-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Bug]: Unable to override Docker Image via testcontainers.properties when using ComposeContainer #9222
Comments
I can have a look if you want @eddumelendez |
Based on an initial view I see the issue at
|
@eddumelendez feel free to review on this one :) |
Hi, the approach we would like to follow is
public ComposeContainer(DockerImageName image, File... composeFiles) {}
public ComposeContainer(DockerImageName image, List<File> composeFiles) {}
public ComposeContainer(DockerImageName image, String identifier, File... composeFiles) {}
public ComposeContainer(DockerImageName image, String identifier, List<File> composeFiles) {}
This way the implementation aligns with other modules. |
Do you want to assign it to me? |
Module
Core
Testcontainers version
1.20.1
Using the latest Testcontainers version?
Yes
Host OS
macOS
Host Arch
x86
Docker version
What happened?
I am attempting to override the default Docker Image version used in ComposeContainer by specifying a custom image version via compose.container.image in testcontainers.properties. However, the override does not seem to take effect and the container still uses the default version which is 24.0.2.
testcontainers.properties file:
compose.container.image=docker:25.0.2
Relevant log output
08:16:41.871 [main] INFO tc.docker:24.0.2 -- Creating container for image: docker:24.0.2
Additional Information
No response
The text was updated successfully, but these errors were encountered: