Open
Conversation
The `docker run` command is failing on macOS if the `i386/debian` image isn't already in cache, the following error is shown: ``` docker: no matching manifest for linux/arm64/v8 in the manifest list entries. ``` To fix this, we add a `--platform=linux/amd64` flag to the command, as recommended by the following SO answer: https://stackoverflow.com/a/79440230/1513045
alexp-sssup
reviewed
Mar 29, 2025
| Explanation: | ||
|
|
||
| - `docker run --rm`: Runs a Docker container and removes it after execution. | ||
| - `--platform=linux/amd64`: Defines the platform to use inside the container. |
Member
There was a problem hiding this comment.
This does not seem to be accurate. Inside the container the platform must be 32-bit x86, not 64-bit x86. The purpose of the option is to enable execution of x86 containers on ARM M-class processors.
@AtibQur Please restructure this suggestion to clarify that only MacOS users should add this option. It does not seem advisable to enable this across the board.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
docker runcommand is failing on macOS if thei386/debianimage isn't already in cache, the following error is shown:To fix this, we add a
--platform=linux/amd64flag to the command, as recommended by the following SO answer: https://stackoverflow.com/a/79440230/1513045