Skip to content

adding --platform tag to docker run (bug fix)#399

Open
tharvipop wants to merge 1 commit intoprakhar1989:masterfrom
tharvipop:arm-docker-run-fix
Open

adding --platform tag to docker run (bug fix)#399
tharvipop wants to merge 1 commit intoprakhar1989:masterfrom
tharvipop:arm-docker-run-fix

Conversation

@tharvipop
Copy link
Copy Markdown

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 run docker run.

@tharvipop tharvipop marked this pull request as draft September 3, 2024 04:08
@tharvipop tharvipop marked this pull request as ready for review September 3, 2024 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant