-
Notifications
You must be signed in to change notification settings - Fork 645
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
FROM --platform in Dockerfile causes error #1516
Comments
some more details: when i pass no platform-parameter i do get a "mixed up" image: (alpine for arm64) with an amd64-java installation which then does not run. |
I think we're not handling this use case when parsing from images from Dockerfile docker-maven-plugin/src/main/java/io/fabric8/maven/docker/util/DockerFileUtil.java Line 60 in e94a181
|
that's what i'm afraid of. |
@arauchberger : We can fix this issue and create a new release. Would you like to submit a PR to fix this issue? |
i'm not very familiar with creating PR's neither am i familiar with the plugins code ... i do not want to make more troubles then benefit. but i would be happy if you could fix this. still ... i'm not 100% sure if this will work out very well.
|
another question related to this: do you support
|
It's supported when doing build but I think while pulling images we're not passing this. We can fix this issue alongside this issue. |
FYI: i solved the problem with the arm64 cli build ... azul/zulu-openjdk-alpine:11 is NOT available for arm64 😢 . i wonder that it is still downloading the amd64 version without telling, but so what. |
) Right now we need to pull base images (ones specified in `FROM` statements) before doing the actual build. DockerfileUtil doesn't seem to be handling the case when an option is specified in `FROM` statement. It just assumes second token to be image name. Add check to ignore token starting with `--` so that it doesn't fail the build. For specifiying pull platform it would need to be set in image configuration build createImageOptions Signed-off-by: Rohan Kumar <[email protected]>
) Right now we need to pull base images (ones specified in `FROM` statements) before doing the actual build. DockerfileUtil doesn't seem to be handling the case when an option is specified in `FROM` statement. It just assumes second token to be image name. Add check to ignore token starting with `--` so that it doesn't fail the build. For specifiying pull platform it would need to be set in image configuration build createImageOptions Signed-off-by: Rohan Kumar <[email protected]>
) Right now we need to pull base images (ones specified in `FROM` statements) before doing the actual build. DockerfileUtil doesn't seem to be handling the case when an option is specified in `FROM` statement. It just assumes second token to be image name. Add check to ignore token starting with `--` so that it doesn't fail the build. For specifiying pull platform it would need to be set in image configuration build createImageOptions Signed-off-by: Rohan Kumar <[email protected]>
) Right now we need to pull base images (ones specified in `FROM` statements) before doing the actual build. DockerfileUtil doesn't seem to be handling the case when an option is specified in `FROM` statement. It just assumes second token to be image name. Add check to ignore token starting with `--` so that it doesn't fail the build. For specifiying pull platform it would need to be set in image configuration build createImageOptions Signed-off-by: Rohan Kumar <[email protected]>
Right now we need to pull base images (ones specified in `FROM` statements) before doing the actual build. DockerfileUtil doesn't seem to be handling the case when an option is specified in `FROM` statement. It just assumes second token to be image name. Add check to ignore token starting with `--` so that it doesn't fail the build. For specifiying pull platform it would need to be set in image configuration build createImageOptions Signed-off-by: Rohan Kumar <[email protected]>
Description
When trying to build from a Dockerfile (multistage) which is containing the
FROM --platform=linux/amd64
instruction the build fails with the following error.the intension to do so is that i work on a new MacBookPro with M1Pro Processor. i need to create at least an amd64 image - but would also be happy to create a native arm64 image (performances!!).
Is this related to the fact that JIB is used for building?
Info
mvn -v
) : 3.6.3Dockerfile
Maven Plugin
The text was updated successfully, but these errors were encountered: