Commit 6a92183
committed
pass --platform to docker save for kind helper images
Plain `docker save` of a multi-arch tag under Docker's containerd image
store exports an OCI index referencing every platform and, for indices
with several platforms (e.g. cert-manager-controller v1.20.2 has 5),
can omit the selected platform's config blob from the tar. This made
`ctr images import --platform=linux/amd64` fail in kind-up with:
ctr: failed to resolve rootfs: content digest sha256:...: not found
Pass the same `--platform` to `docker save` (Docker 28+/API 1.48+) so
the archive is a self-contained single-platform OCI image.1 parent 76a5b5b commit 6a92183
2 files changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1350 | 1350 | | |
1351 | 1351 | | |
1352 | 1352 | | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
1353 | 1360 | | |
1354 | 1361 | | |
1355 | 1362 | | |
1356 | 1363 | | |
1357 | | - | |
| 1364 | + | |
1358 | 1365 | | |
1359 | 1366 | | |
1360 | 1367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
610 | | - | |
| 610 | + | |
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
| |||
677 | 677 | | |
678 | 678 | | |
679 | 679 | | |
680 | | - | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
681 | 687 | | |
682 | 688 | | |
683 | 689 | | |
| |||
0 commit comments