testcontainers / testcontainers/testcontainers-java

Platform argument required for docker run

Open
#3,810 21 comments 32 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.