We might be able to use the local docker mirror that is configured in concourse for test containers. I think we'd need a custom ImageNameSubstitutor and also a custom docker login.

Comment From: ttddyy

@philwebb In my project, I have this implementation for image name substitution, fyi. (Testcontainers issue comment)

Comment From: bsideup

@philwebb if you configure your mirror like this, it would work out of the box: https://docs.docker.com/registry/recipes/mirror/

Comment From: philwebb

Trying something on main. If it's stable we can backport.

Comment From: wilkinsona

Backported as part of 429167e71ff0e59b0dfbd8625c24307d8e74113d for gh-25135.