testcontainers / testcontainers/testcontainers-java
ImagePullPolicyTest fails on Docker for Windows with WSL2 backend
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 1.9k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 9
Description
All tests in ImagePullPolicyTest currently fail on Docker for Windows with WSL2 backend.
From what I manually investigated, it is not possible to push to and pull from the Docker registry that is started for the test (but accessing the API via curl from within WSL2 over the mapped port is possible). However, when manually running a registry and interacting with it from within WSL2, Docker behaves as expected.
There is also the possibility that pushing the initial test image already fails silently:
https://github.com/testcontainers/testcontainers-java/blob/master/core/src/test/java/org/testcontainers/images/ImagePullPolicyTest.java#L51
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
Start with core/src/test/java/org/testcontainers/images/ImagePullPolicyTest.java, especially the initial image push around line 51, and reproduce the failures on Docker for Windows with the WSL2 backend. Compare registry access from the test and from within WSL2, then verify that the test image push and subsequent pull work and all ImagePullPolicyTest tests pass.
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
- Mostly clear
- Newbie friendliness
- 35/100