containerd/cmd/ctr/commands
Gavin Inglis 2c98a7b099 ctr import: strictly match platform
Currently, ctr import will use loose matching as defined by
platforms.Only(), meaning in the case of platform linux/amd64 as in
issue#6441, importing will also match linux/386 platform on the
image-to-be-imported's index. However, that image-to-be-imported may not
have both the linux/amd64 and linux/386 platform contents, resulting in
a failure to unpack the image. This change makes that check strict such
that the requested platform to import for is the only platform content
imported. Both ctr pull and ctr export will treat the platform option as
strict, so this change makes ctr import consistent with those.

resolves #6441

Signed-off-by: Gavin Inglis <giinglis@amazon.com>
2022-05-06 22:44:43 +00:00
..
containers Use typeurl.Any instead of github.com/gogo/protobuf/types.Any 2022-03-24 20:50:07 +00:00
content Officially deprecate Schema 1 2022-05-02 19:08:38 +09:00
events ctr events: do not exit on an error 2020-01-29 13:10:16 +09:00
images ctr import: strictly match platform 2022-05-06 22:44:43 +00:00
install Add optional install path 2018-09-11 10:36:00 -04:00
leases ctr: Unify the delete subcommand alias 2022-01-11 16:21:26 +08:00
namespaces feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
oci feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
plugins Remove all gogoproto extensions 2022-04-20 07:23:28 +00:00
pprof feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
run Merge pull request #6809 from jterry75/main 2022-04-29 16:39:52 +01:00
sandboxes [sandbox] Cleanup interfaces 2022-04-08 13:34:50 -07:00
shim Move runtime v2 proto 2022-04-19 17:59:33 -07:00
snapshots ctr: Unify the delete subcommand alias 2022-01-11 16:21:26 +08:00
tasks Use typeurl.Any instead of github.com/gogo/protobuf/types.Any 2022-03-24 20:50:07 +00:00
version adding go version to client description 2019-10-06 13:38:51 +02:00
client.go implement ctr -connect-timeout 2019-09-16 13:56:53 +02:00
cni.go fix: ctr run --cni get failed 2022-03-15 15:46:29 +08:00
commands_unix.go Implement --device idType://id for ctr run on Windows 2022-03-12 08:16:43 +11:00
commands_windows.go Add ctr support for CPUMax and CPUShares 2022-04-28 13:17:16 -07:00
commands.go cri: support blockio class in pod and container annotations 2022-04-29 11:44:09 +03:00
resolver.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
signals_linux.go Ignore SIGURG signals in signal forwarder 2020-09-04 16:19:31 -07:00
signals_notlinux.go Run go fmt with Go 1.17 2021-08-22 09:31:50 +09:00
signals.go Ignore SIGURG signals in signal forwarder 2020-09-04 16:19:31 -07:00
utils.go Implemented image encryption/decryption libraries and ctr commands 2019-07-17 15:19:58 -04:00