This change adds support for specifying fully-qualified CDI device
names in the --device flag. This allows the Container Device Interface
(CDI) to be used to inject devices into container being run.
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Enable cdi feature for Docker
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Update go mod
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Jin Dong <djdongjin95@gmail.com>
use containerd cdi.WithCDIDevices
Signed-off-by: Jin Dong <djdongjin95@gmail.com>
The same imageId underk8s.io is showing multiple results: repo:tag, repo:digest, configID.
We expect to display only repo:tag, consistent with other namespaces and CRI.
e.g.
nerdctl -n k8s.io images
REPOSITORY TAG IMAGE ID CREATED PLATFORM SIZE BLOB SIZE
centos 7 be65f488b776 3 hours ago linux/amd64 211.5 MiB 72.6 MiB
centos <none> be65f488b776 3 hours ago linux/amd64 211.5 MiB 72.6 MiB
<none> <none> be65f488b776 3 hours ago linux/amd64 211.5 MiB 72.6 MiB
expect:
nerdctl --kube-hide-dupe -n k8s.io images
REPOSITORY TAG IMAGE ID CREATED PLATFORM SIZE BLOB SIZE
centos 7 be65f488b776 3 hours ago linux/amd64 211.5 MiB 72.6 MiB
Of course, even after deduplicating the images displayed, there are still issues with deleting the images.
It is necessary to distinguish between repo:tag and configId, as well as repoDigest. Considering the situation with tags,
we need to ensure that all repo:tags under the same imageId are cleaned up before proceeding to clean up the configId and repoDigest.
see: https://github.com/containerd/nerdctl/issues/3702
Signed-off-by: fengwei0328 <feng.wei8@zte.com.cn>
See `docs/registry.md`
Fix issue 639
`nerdctl login` still ignore the hosts dir.
Fixed in the next commit.
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>