-
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
How to specify --platform
argument image pull option for multi platform images
#1532
Comments
While doing build docker maven plugin would ignore this platform parameter. You'd need to provide platform in XML configuration : <plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.39.1</version>
<configuration>
<images>
<image>
<!- .. ->
<build>
<createImageOptions>
<platform>linux/amd64</platform>
</createImageOptions>
</build>
</image>
</images>
</configuration>
</plugin> |
Yeah, I saw that, but this option is only for building/creating images, not for |
This option should work for pulling images. When you're pulling, you're creating image as well on your docker host.I think you'd need to set platform to the platform you're current docker host is based (from where you're pulling it). |
@rohanKanojia @vivanov83 could you please fix the subject of this issue ? |
--platform
argument image pull option for multi platform images
@vivanov83 : polite ping, Did you get time to try my suggestion? |
Let me explain differently : |
Consider trying buildx support just added in #1548 |
buildx support should be available in 0.40.0 . Please try it out and provide us feedback! |
@rohanKanojia please close |
I don't understand how this is related to the image pull...the buildx.platforms setting does not help. [WARNING] DOCKER> The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested how to pull the right image?!
|
Docker will just pull the right image if you don't specify |
as you can see in the warning I posted, it does not. |
SInce you have specified
only the If you remove the |
confirmed, thx @chonton |
hi, i faced the same issue, however the in my case, there is a single sentence in docs that pointed me to fix:
in given section: http://dmp.fabric8.io/#start-configuration i think it could be a bit better documented, that those two options are different - one for build and the other for run. also, the docs contain exampel for build, but not for run. also, as stated in docs:
setting the only working option for me is to override parent plugin image configuration and specify like this:
|
FYI: I've created an issue to either make it work for runnig or fix the docs: #1750 |
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.
Originally posted by @rohanKanojia in #1516 (comment)
Does this part is fixed, or planed to be fixed?
If it's fixed already, may I have an example how we're defining multiplatform image pull in xml
The text was updated successfully, but these errors were encountered: