Skip to content

Is there any way to cache docker images for use in CI? #583

Discussion options

You must be logged in to vote

I ended up switching to use github's builtin action containers if the action is running in CI (and only use testcontainers for tests running locally) so that I could just rely on github's built-in caching

Could you pls give a bit more info about the GH built-in cache to which you are referring?

For posterity's sake, where are the images stored if TESTCONTAINERS_RYUK_DISABLED is set? Theoretically that folder could be cached in CI

Docker itself maintains its own image cache, I believe in /var/lib/docker/<storage-driver>. There's nothing custom that Testcontainers adds on top.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@alex-statsig
Comment options

@cristianrgreco
Comment options

Answer selected by alex-statsig
@alex-statsig
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants