Skip to content
Discussion options

You must be logged in to vote

You can configure this by setting custom configurations either through an environment variable (TESTCONTAINERS_RYUK_CONTAINER_IMAGE) or the ~/.testcontainers.properties file (ryuk.container.image).

There's also the TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX configuration, which lets you substitute the Docker Hub registry. Setting this will automatically prepend the value to all image names (as registry/host).

Setting TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX to myregistry.azurecr.io automatically changes WithImage("alpine:3") to myregistry.azurecr.io/alpine:3 internally.

I'll update the docs regarding this too.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@MaQy
Comment options

@HofmeisterAn
Comment options

@MaQy
Comment options

@HofmeisterAn
Comment options

@MaQy
Comment options

Answer selected by HofmeisterAn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants