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

keep the platform defined via DOCKER_DEFAULT_PLATFORM during build if no build platforms provided #9854

Merged

Conversation

glours
Copy link
Contributor

@glours glours commented Sep 16, 2022

What I did
Don't throw an error when DOCKER_DEFAULT_PLATFORM is set and service.build.platforms isn't set

Related issue
fixes #9853

(not mandatory) A picture of a cute animal, if possible in relation with what you did
image

… no build platforms provided

Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
@glours glours self-assigned this Sep 16, 2022
@glours glours requested a review from a team September 16, 2022 20:25
Copy link
Member

@nicksieger nicksieger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@glours glours merged commit db88241 into docker:v2 Sep 20, 2022
@glours glours deleted the fix-docker-default-platform--without-build-platform branch January 11, 2023 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] use of DOCKER_DEFAULT_PLATFORM in addition to explicit service "platform:" results in error
3 participants