Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidBaseImagePlatform warning now emitted when building linux/386 images on linux/amd64 host #1852

Closed
atc0005 opened this issue Jan 16, 2025 · 0 comments · Fixed by #1853
Assignees
Labels
bug Something isn't working Makefile
Milestone

Comments

@atc0005
Copy link
Owner

atc0005 commented Jan 16, 2025

While working on changes to the unstable Alpine build images as part of #1831 I encountered this warning output:

1 warning found (use docker --debug to expand):

  • InvalidBaseImagePlatform: Base image i386/golang:1.24rc1-alpine3.20 was pulled with platform "linux/386", expected "linux/amd64" for current build (line 10)

This is running on a linux/amd64 host, so presumably we just need to explicitly specify the platform value to match the platform we're already specifying in each Dockerfile.

See also:

@atc0005 atc0005 added bug Something isn't working Makefile labels Jan 16, 2025
@atc0005 atc0005 added this to the v0.22.1 milestone Jan 16, 2025
@atc0005 atc0005 self-assigned this Jan 16, 2025
@atc0005 atc0005 changed the title InvalidBaseImagePlatform warning now emitted when building linux/386 images on linux/amd64 host InvalidBaseImagePlatform warning now emitted when building linux/386 images on linux/amd64 host Jan 16, 2025
atc0005 added a commit that referenced this issue Jan 16, 2025
Use `--platform` flag to explicitly specify applicable value
to match the one already specified in each Dockerfile.

This resolves the `InvalidBaseImagePlatform` warning emitted by
current versions of Docker.

refs GH-1852
atc0005 added a commit that referenced this issue Jan 16, 2025
Use `--platform` flag to explicitly specify applicable value
to match the one already specified in each Dockerfile.

This resolves the `InvalidBaseImagePlatform` warning emitted by
current versions of Docker.

refs GH-1852
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Makefile
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant