Skip to content

Commit e41e9e1

Browse files
committed
transfer: Platform matcher should match multiple platforms
This allows arm64 to pull armhf images. Before this change the transfer service would reject pulls for armhf on an arm64 machine, or indeed any such platform variant mismatches. I would argue that its a bit weird for the transfer service to reject a pull at all since there are legitamate reasons to want to pull images for other architectures, however that's a more philosophical change. In the case where I ran into this, I have an arm64 machine running an armhf containerd in an armhf container (for running some basic sanity checks during packaging). Tests started failing once `ctr` was moved to use the transfer service by default. Signed-off-by: Brian Goff <[email protected]>
1 parent 124456e commit e41e9e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/transfer/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func init() {
9494
}
9595

9696
var applier diff.Applier
97-
target := platforms.OnlyStrict(p)
97+
target := platforms.Only(p)
9898
if uc.Differ != "" {
9999
inst, err := ic.GetByID(plugins.DiffPlugin, uc.Differ)
100100
if err != nil {

0 commit comments

Comments
 (0)