Skip to content
Snippets Groups Projects
Commit c74abd94 authored by Ben Gamari's avatar Ben Gamari :turtle:
Browse files

Specify --custom-platform when building non-host platform images

For reasons that are a bit unclear, Kaniko now rejects some (but,
strangely, not all) images whose platforms don't match that of the host
machine. This appears to be the (allegely fixed) issue reported in [1].

Since Docker is awful and life is short, here we use the workaround
proposed in the ticket, using `--custom-platform` to override the image
platform, coercing Kaniko to do as we say.

[1] https://github.com/GoogleContainerTools/kaniko/issues/1995
parent 38b578f8
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment