adding --platform tag to docker run (bug fix) #399
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.
ARM-based issue in
docker run
I noticed the following bug while running the tutorial:
running
docker run -d -P --name static-site prakhar1989/static-site
results in error ->
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested b040bc6f28a20bc0f80517b4d0ff7085d2bb3b28a894567f94d646074710a1e7
After a bit of perusing, I found this fix
TL; DR:
Adding a
--platform linux/amd64
commands helps arm-based users rundocker run
.