dive
dive copied to clipboard
Support to use crictl
Request
On a linux machine where docker is not installed but containerd
we can list/access the images using the tool crictl
which is not supported by dive. Would it be possible to support it ?
crictl command
[snowdrop@h01-121 ~]$ sudo crictl images
WARN[0000] image connect using default endpoints: [unix:///var/run/dockershim.sock unix:///run/containerd/containerd.sock unix:///run/crio/crio.sock]. As the default settings are now deprecated, you should set the endpoint instead.
IMAGE TAG IMAGE ID SIZE
docker.io/cmoulliard/build-service <none> b6d195b25af19 282MB
docker.io/cmoulliard/tanzu-java-web-app-tap-demo <none> 9b1e30dbeaa13 120MB
docker.io/library/registry 2.6 10b45af23ff36 9.1MB
...
dive command
dive registry.tanzu.vmware.com/tanzu-application-platform/tap-packages:8027e592f8c5
Image Source: docker://registry.tanzu.vmware.com/tanzu-application-platform/tap-packages:8027e592f8c5
Fetching image... (this can take a while for large images)
Handler not available locally. Trying to pull 'registry.tanzu.vmware.com/tanzu-application-platform/tap-packages:8027e592f8c5'...
cannot fetch image
cannot find docker client executable
Letting you know also CRI-O images are not supported yet (ie: not built using docker/containerd/podman). Using SUDO or not.
Maybe a reference to the container runtime would help ?
Storage driver: overlayfs Runtime: crun CGroup driver: systemd
Using containers with following runtime endpoint: unix://var/run/crio/crio.sock
22:31 nuno-aj-aniceto ~/project-manager-api (git: main)
$ >> crictl images | grep project-manager
localhost/project-manager-api latest 1576f79c52ad2 347MB
22:32 nuno-aj-aniceto ~/project-manager-api (git: main)
$ >> sudo dive localhost/project-manager-api
Image Source: docker://localhost/project-manager-api
Fetching image... (this can take a while for large images)
Handler not available locally. Trying to pull 'localhost/project-manager-api'...
cannot fetch image
cannot find docker client executable
Notice: works with the flag "--source podman", the command works (as sudo as podman runs in rootless).
sudo dive --source podman localhost/project-manager-api