How to Specify Private Registries? #5053
Answered
by
kiview
GiovanniCampaner
asked this question in
Q&A
|
Coming from: #1689 I'm using Maven with JUnit 5, trying to setup a container like this: @QuarkusTest
@Testcontainers
@Tag("integration")
public class MyServiceIntegrationTest {
private static final DockerImageName image = DockerImageName.parse("my-custom-repository/database/mariadb:latest")
.asCompatibleSubstituteFor("mariadb");
@Container
private final MariaDBContainer<?> topLevelContainer = new MariaDBContainer<>(image)
.withExposedPorts(3306);
...
}But when launching with I can't use public repositories, how can I specify the image to be pulled from |
Answered by
kiview
Feb 16, 2022
Replies: 2 comments 3 replies
|
This works already if you specify your own registry with its domain, see our docs: |
1 reply
Answer selected by
kiview
|
For my isolated CICD i use |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This works already if you specify your own registry with its domain, see our docs:
https://www.testcontainers.org/features/image_name_substitution/#manual-substitution