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
Always pulling images even when they're locally available #1941
Comments
In particular, it seems to be around this code:
The However, when |
I can get exact versions later, but:
My app is also written in Kotlin and builds with Maven, but I don't see that being relevant. Cheers |
More version info:
|
Are you able to run this with I think you can do this by building and running your tests with a <configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern>
</encoder>
</appender>
<root level="TRACE">
<appender-ref ref="STDOUT"/>
</root>
<logger name="org.testcontainers" level="TRACE"/>
<logger name="com.github.dockerjava" level="TRACE"/>
<logger name="org.zeroturnaround.exec" level="TRACE"/>
<logger name="org.testcontainers.shaded" level="TRACE"/>
</configuration> |
I don't quite know what I've done, but it's no longer doing it... I'd been trying to get a local build of TestContainers that I could depend on - and not worked out how to get my Maven build to depend on a Gradle project :\ - but I've got zero changes outstanding and now it's not trying to pull images every time. I'll keep an eye on it to see if it happens again, but for now it seems to have resolved itself somehow. |
No worries - possibly something environmental in your docker setup? If it crops up again then message back 👍 |
#1345 might have an effect on this, or at least give options should you find a way to reproduce again. I'll close this ticket for now, but of course if you do find this happening consistently again please feel free to reopen. BTW, thanks @AndyMacDroo for your input here 🙇 |
I've noticed that the TestContainers code is always attempting to pull images, even when they are locally available. This obviously makes builds slower, and can cause problems when working without internet access.
The problem seems to be in
RemoteDockerImage.resolve()
, though I've not worked out any more than that yet.The text was updated successfully, but these errors were encountered: