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
Support locally built images with Docker::Image.get fallback in #start #78
n such cases, it would be helpful if #start could attempt to use Docker::Image.get(image_name) first to find a local image, and only fall back to Docker::Image.create(...) if it's not found.
Alternatively — or even better — maybe the project could support building an image natively from a local Dockerfile as part of the container lifecycle setup? This would make local development more seamless and reduce external dependencies for custom containers.
Would you be open to adding this fallback behavior?
maybe the project could support building an image natively from a local Dockerfile as part of the container lifecycle setup? This would make local development more seamless and reduce external dependencies for custom containers.
@dieter-medium That's part of our roadmap, can you create a PR for it? If a different API is needed for this we can see to other testcontainers projects for inspiration about how the API would be.
Activity
dieter-medium commentedon Apr 6, 2025
Just to add some context — I tried working around this by monkey patching the #start method like so:
guilleiguaran commentedon May 7, 2025
@dieter-medium That's part of our roadmap, can you create a PR for it? If a different API is needed for this we can see to other testcontainers projects for inspiration about how the API would be.
guilleiguaran commentedon Oct 19, 2025
@dieter-medium see #92