adamant-kite-43734
06/06/2023, 11:23 AMjolly-forest-99711
06/06/2023, 4:32 PMjolly-forest-99711
06/06/2023, 4:58 PMhelpful-butcher-75556
06/06/2023, 5:25 PM> trivy image test-producer:latest -f json
2023-06-06T13:21:55.650-0400 FATAL image scan error: scan error: unable to initialize a scanner: unable to initialize a docker scanner: 4 errors occurred:
* unable to inspect the image (test-producer:latest): Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
* containerd socket not found: /run/containerd/containerd.sock
* unable to initialize Podman client: no podman socket found: stat podman/podman.sock: no such file or directory
* GET <https://index.docker.io/v2/library/test-producer/manifests/latest>: UNAUTHORIZED: authentication required; [map[Action:pull Class: Name:library/test-producer Type:repository]]
jolly-forest-99711
06/06/2023, 8:28 PMls -l /var/run/docker.sock
? It should be there if you've configured Rancher Desktop to use docker/mobyjolly-forest-99711
06/06/2023, 8:29 PMhelpful-butcher-75556
06/06/2023, 8:32 PM> ls -l /var/run/docker.sock
ls: /var/run/docker.sock: No such file or directory
I originally was using containerd with RD, and switched to dockerd. Did that cause the docker.sock to not get configured?jolly-forest-99711
06/06/2023, 8:33 PMjolly-forest-99711
06/06/2023, 8:34 PMhelpful-butcher-75556
06/06/2023, 8:36 PM~/.rd
helpful-butcher-75556
06/06/2023, 8:37 PM> ls ~/.rd
bin docker.sock
jolly-forest-99711
06/06/2023, 8:37 PMhelpful-butcher-75556
06/06/2023, 8:46 PMsudo ln -s ~/.rd/docker.sock /var/run/docker.sock
fixed it. Thanks @jolly-forest-99711jolly-forest-99711
06/06/2023, 8:49 PMsudo
, I would recommend letting RD use it to create /var/run/docker.sock for you to begin with. I don't think symlinking as you have done will cause issues, but it's always better to stick to the normal way of doing thingshelpful-butcher-75556
06/06/2023, 9:08 PMjolly-forest-99711
06/06/2023, 9:22 PM