boundless-monitor-25497
03/31/2025, 12:34 PMtrivy image --severity CRITICAL,HIGH --exit-code 1 segment-api:latest
---
and I get this error
2025-03-31T13:32:31+01:00 INFO [vulndb] Need to update DB
2025-03-31T13:32:31+01:00 INFO [vulndb] Downloading vulnerability DB...
2025-03-31T13:32:31+01:00 INFO [vulndb] Downloading artifact... repo="mirror.gcr.io/aquasec/trivy-db:2"
61.66 MiB / 61.66 MiB [---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% 7.36 MiB p/s 8.6s
2025-03-31T13:32:40+01:00 INFO [vulndb] Artifact successfully downloaded repo="mirror.gcr.io/aquasec/trivy-db:2"
2025-03-31T13:32:40+01:00 INFO [vuln] Vulnerability scanning is enabled
2025-03-31T13:32:40+01:00 INFO [secret] Secret scanning is enabled
2025-03-31T13:32:40+01:00 INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-03-31T13:32:40+01:00 INFO [secret] Please see also <https://aquasecurity.github.io/trivy/v0.59/docs/scanner/secret#recommendation> for faster secret detection
2025-03-31T13:32:41+01:00 FATAL Fatal error image scan error: scan error: unable to initialize a scanner: unable to initialize an image scanner: unable to find the specified image "segment-api:latest" in ["docker" "containerd" "podman" "remote"]: 4 errors occurred:
* docker error: unable to inspect the image (segment-api:latest): Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
* containerd error: containerd socket not found: /run/containerd/containerd.sock
* podman error: unable to initialize Podman client: no podman socket found: stat podman/podman.sock: no such file or directory
* remote error: GET <https://index.docker.io/v2/library/segment-api/manifests/latest>: UNAUTHORIZED: authentication required; [map[Action:pull Class: Name:library/segment-api Type:repository]]
mysterious-animal-29850
03/31/2025, 3:14 PMboundless-monitor-25497
03/31/2025, 3:15 PMmysterious-animal-29850
03/31/2025, 3:16 PMboundless-monitor-25497
03/31/2025, 3:16 PMmysterious-animal-29850
03/31/2025, 3:16 PMboundless-monitor-25497
03/31/2025, 3:17 PMmysterious-animal-29850
03/31/2025, 3:18 PM/var/run/docker.sock
? Is your user part of the docker group?boundless-monitor-25497
03/31/2025, 3:19 PMmysterious-animal-29850
03/31/2025, 3:22 PMboundless-monitor-25497
03/31/2025, 3:49 PMboundless-monitor-25497
03/31/2025, 3:49 PMboundless-monitor-25497
03/31/2025, 3:49 PMmysterious-animal-29850
03/31/2025, 5:24 PMlocalhost/segment-api:latest
mysterious-animal-29850
03/31/2025, 5:25 PMboundless-monitor-25497
04/01/2025, 2:43 AMsandeep.das@D4092W76P6 iiris-apis % trivy image --severity CRITICAL,HIGH --exit-code 1 localhost/segment-api:latest
2025-04-01T03:40:44+01:00 INFO [vuln] Vulnerability scanning is enabled
2025-04-01T03:40:44+01:00 INFO [secret] Secret scanning is enabled
2025-04-01T03:40:44+01:00 INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-04-01T03:40:44+01:00 INFO [secret] Please see also <https://aquasecurity.github.io/trivy/v0.59/docs/scanner/secret#recommendation> for faster secret detection
2025-04-01T03:40:45+01:00 FATAL Fatal error image scan error: scan error: unable to initialize a scanner: unable to initialize an image scanner: unable to find the specified image "localhost/segment-api:latest" in ["docker" "containerd" "podman" "remote"]: 4 errors occurred:
* docker error: unable to inspect the image (localhost/segment-api:latest): Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
* containerd error: containerd socket not found: /run/containerd/containerd.sock
* podman error: unable to initialize Podman client: no podman socket found: stat podman/podman.sock: no such file or directory
* remote error: GET <https://index.docker.io/v2/localhost/segment-api/manifests/latest>: UNAUTHORIZED: authentication required; [map[Action:pull Class: Name:localhost/segment-api Type:repository]]
mysterious-animal-29850
04/01/2025, 2:45 AMboundless-monitor-25497
04/01/2025, 2:47 AMsandeep.das@D4092W76P6 iiris-apis % docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
segment-api latest 86cd9a653dbc 14 hours ago 965MB
mysterious-animal-29850
04/01/2025, 2:59 AMboundless-monitor-25497
04/01/2025, 3:00 AMtrivy image --severity CRITICAL,HIGH --exit-code 1 --docker-host unix:///Users/sandeep.das/.rd/docker.sock segment-api:latest
Open Issue: docker context isn't respected to select the docker daemon
https://github.com/aquasecurity/trivy/issues/7686mysterious-animal-29850
04/01/2025, 3:00 AMmysterious-animal-29850
04/01/2025, 3:01 AMboundless-monitor-25497
04/01/2025, 3:06 AM