Skip to content

[BUG] Multi-Platform Patching doesn't seem to generate the final multi-platform image #1365

@gunamata

Description

@gunamata

Version of copa

0.12.0-rc.3

Expected Behavior

Multi-platform patching described in this doc should produce a combined final multi-platform patched image.

Actual Behavior

copa produces multiple patched images for individual platforms but doesn't produce a combined final multi-platform patched image.

Steps To Reproduce

  1. Follow the commands in this section
  2. copa patch .. command produces patched images for individual platforms
nginx                                                             1.25.0-patched-amd64           ff991549c4c9   2 years ago     504MB
nginx                                                             1.25.0-patched-arm64           18b32ddf24ee   2 years ago     231MB

The console shows below messages and seems to suggest to manually combine the individual images to final.

INFO[0112] To push the individual architecture images, run:
INFO[0112]   docker push docker.io/library/nginx:1.25.0-patched-amd64
INFO[0112]   docker push docker.io/library/nginx:1.25.0-patched-arm64
INFO[0112] To create and push the multi-platform manifest, run:
INFO[0112]   docker buildx imagetools create --tag docker.io/library/nginx:1.25.0-patched docker.io/library/nginx:1.25.0@sha256:acd0f231cc3738af0a929c3f9b14e3d2a3a29ad700f955b528e4af1bd08ac607 docker.io/library/nginx:1.25.0@sha256:1c10f6fc02fcd714afc577205c6ae44931713667a1b50ec7d9043e316981fc19 docker.io/library/nginx:1.25.0@sha256:33b847f7675663ec73c2b21fff5a5acbad45b28d4b4271903f5709baa9c4b809 docker.io/library/nginx:1.25.0@sha256:b5d817edffe54814ad17ca9395a5ca9484816ff9e2a312afecdbcbde238d2592 docker.io/library/nginx:1.25.0@sha256:280e50fb709c5f3270dad41b804f635d7b1314e453d39b49a624348c7598b5ba docker.io/library/nginx:1.25.0@sha256:0399258617101581e7ca48e1c2982576f4e342090c8c1197951ba08775d19386 docker.io/library/nginx:1.25.0-patched-amd64 docker.io/library/nginx:1.25.0-patched-arm64
INFO[0112]
Multi-arch patch summary:
PLATFORM        STATUS       REFERENCE                                            MESSAGE
linux/amd64     Patched      docker.io/library/nginx:1.25.0-patched-amd64         Successfully patched image (linux/amd64)
linux/arm/v5    Not Patched  docker.io/library/nginx:1.25.0 (original reference)  Preserved original image (No Scan Report provided for platform)
linux/arm/v7    Not Patched  docker.io/library/nginx:1.25.0 (original reference)  Preserved original image (No Scan Report provided for platform)
linux/arm64     Patched      docker.io/library/nginx:1.25.0-patched-arm64         Successfully patched image (linux/arm64)
linux/386       Not Patched  docker.io/library/nginx:1.25.0 (original reference)  Preserved original image (No Scan Report provided for platform)
linux/mips64le  Not Patched  docker.io/library/nginx:1.25.0 (original reference)  Preserved original image (No Scan Report provided for platform)
linux/ppc64le   Not Patched  docker.io/library/nginx:1.25.0 (original reference)  Preserved original image (No Scan Report provided for platform)
linux/s390x     Not Patched  docker.io/library/nginx:1.25.0 (original reference)  Preserved original image (No Scan Report provided for platform)

Are you willing to submit PRs to contribute to this bug fix?

  • Yes, I am willing to implement it.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

🏗 In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions