testcontainers / testcontainers/testcontainers-java
Internal Registry doesn't work
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 1.9k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 9
Description
To avoid race limit in dockerhub, we put postgres image into our internal jfrog and try to fetch from there. We run the test case on jenkins worker and we can pull the internal image from jenkins worker without any issue. So I don't have clue why the testcontainers still seeing the docker hub limits issue.
Code:
private static final PostgreSQLContainer postgres = new PostgreSQLContainer(
DockerImageName.parse("symphony-docker-local.artifactory.eng.vmware.com/postgres:12.0")
.asCompatibleSubstituteFor("postgres"));
Error:
Caused by: org.testcontainers.containers.ContainerFetchException: Can't get Docker image: RemoteDockerImage(imageName=symphony-docker-local.artifactory.eng.vmware.com/postgres:12.0, imagePullPolicy=DefaultPullPolicy())
at org.testcontainers.containers.GenericContainer.getDockerImageName(GenericContainer.java:1278) ~[testcontainers-1.15.0.jar:na]
at org.testcontainers.containers.GenericContainer.logger(GenericContainer.java:612) ~[testcontainers-1.15.0.jar:na]
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:317) ~[testcontainers-1.15.0.jar:na]
... 62 common frames omitted
Caused by: com.github.dockerjava.api.exception.InternalServerErrorException: Status 500: {"message":"toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit"}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Jenkins-worker test using PostgreSQLContainer with DockerImageName.parse and asCompatibleSubstituteFor("postgres"). Trace the image-fetch path around GenericContainer and the reported Docker Java exception, then verify that the configured JFrog image is pulled without falling back to Docker Hub or triggering its rate limit.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, java
- Domain
- devops, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100