testcontainers / testcontainers/testcontainers-java
Platform argument required for docker run
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 1.9k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 9
Description
On a new MacBook with the M1 chip, I get an error when trying to start a container:
no suitable image found. Did find:
/some/random/tmp/file: no matching architecture in universal wrapper
I get a similar error running the container manually with docker run <image-name>, but it will work if I use docker run --platform linux/amd64 <image-name>. Is it possible to use that parameter with testcontainters?
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 by tracing how Testcontainers starts Docker containers and whether container startup options are exposed for architecture selection. Compare the reported docker run behavior with the library's current configuration; done when users can provide the needed platform setting and the behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, java
- Domain
- devops, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100