GoogleContainerTools / GoogleContainerTools/skaffold

Multi-platform image created with skaffold build is not sent to default-registry

Open
#7,683 0 comments 0 reactions 0 assignees View on GitHub
area/multi-platform kind/feature-request priority/p2 v2-beta1-bugbash
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

### Expected behavior
When running `skaffold build --platform=linux/arm64,linux/amd64 --default-repo=gcr.io/my-registry`, Skaffold should push the created multi-platform image to the specified default-repo.

### Actual behavior
Instead, it tries to push it to the local Docker engine, which does not support multi-platform images. To make it work, the command should be run with the `--push` flag: `build --platform=linux/arm64,linux/amd64 --default-repo=gcr.io/my-registry --push`

### Information

- Skaffold version: main V2
- Operating system: MacOS, x86
- Installed via: compile from main
- Contents of skaffold.yaml: Use Java guest book example from [here](https://github.com/GoogleCloudPlatform/cloud-code-samples/tree/v1/java/java-guestbook)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.