-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Pass platform constraint for oci layout #3397
Conversation
In case of oci layout `FROM --platform=` notation does not pass platform constraint. In case of pointing onto digest of multi-platform index we try to resolve target platform, which is wrong. Signed-off-by: Petr Fedchenkov <[email protected]>
Good catch @giggsoff! I've been playing with the OCI layout code and didn't catch this one myself 😮💨 I can see similar logic implemented for docker-container, so I'm happy with the implementation 🎉 |
@jedevc when does this end up in |
Should be released in v0.11 - we've already done a release candidate RC1, we aim to do a full release soon. Just a note, API compatibility won't necessarily be preserved between RCs and dev branches, we only have our API compatibility guarantees between our actual releases. |
Is there an ETA? In the meantime, I probably can just use a reference to a specific digest, which is what I have done in the past.
Hopefully, I haven't used anything that will break. If I do, we will fix it. |
Am I correct that this tag includes it? |
When it's done 😉 Likely sometime this/next month, but can't say for sure.
Correct. Likewise with
Any issues will likely be avoided by making sure that you don't mix and match development versions of buildx/buildkit/dockerfiles. |
Cool, thanks. Looks like it is While on the topic, did the frontend |
In case of oci layout
FROM --platform=
notation does not pass platformconstraint. In case of pointing onto digest of multi-platform index we
try to resolve target platform, which is wrong.
fixes #3396
Signed-off-by: Petr Fedchenkov [email protected]