Open
Description
New issue checklist
- I searched for existing GitHub issues
- I read pipeline troubleshooting guide
- I checked how to collect logs
Task name
Docker@2
Task version
v2.254.1
Issue Description
At out pipeline, we are using trivy@1 task for security-scanning our container images from our private ACR.
Recently the task started to be failed without any changes on our side:
2025-05-07T00:12:39Z INFO [secret] Please see also [https://trivy.dev/v0.61/docs/scanner/secret#recommendation](https://trivy.dev/v0.61/docs/scanner/secret#recommendation) for faster secret detection
2025-05-07T00:12:40Z FATAL Fatal error image scan error: scan error: unable to initialize a scan service: unable to initialize an image scan service: unable to find the specified image "***/xxxxx:develop" in ["docker" "containerd" "podman" "remote"]: 4 errors occurred:
* docker error: unable to inspect the image (***/xxxxx:develop): Error response from daemon: No such image: ***/xxxxx:develop
* 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
Our original pipeline configuration looks like
- task: Docker@2
displayName: Login to ACR
inputs:
command: login
containerRegistry: xxxxxxxxxx
- task: trivy@1
displayName: Image Scan
inputs:
image: xxxxxxxxxxxxx/xxxxx:develop
loginDockerConfig: true
From the above error message, Docker@2 login
doesn't seem to work and we have replaced task: Docker@2
with the following script task.
- script: |
docker login -u "${ACR_TOKEN_NAME}" -p "${ACR_TOKEN_PASSWD}" "${ACR}"
displayName: Login to ACR with docker
This change works for our task: trivy@1
, but I still have a question this is expected.
Environment type (Please select at least one enviroment where you face this issue)
- Self-Hosted
- Microsoft Hosted
- VMSS Pool
- Container
Azure DevOps Server type
Azure DevOps Server (Please specify exact version in the textbox below)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu latest
Relevant log output
2025-05-07T00:12:39Z INFO [secret] Please see also [https://trivy.dev/v0.61/docs/scanner/secret#recommendation](https://trivy.dev/v0.61/docs/scanner/secret#recommendation) for faster secret detection
2025-05-07T00:12:40Z FATAL Fatal error image scan error: scan error: unable to initialize a scan service: unable to initialize an image scan service: unable to find the specified image "***/xxxxx:develop" in ["docker" "containerd" "podman" "remote"]: 4 errors occurred:
* docker error: unable to inspect the image (***/xxxxx:develop): Error response from daemon: No such image: ***/xxxxx:develop
* 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
Full task logs with system.debug enabled
[REPLACE THIS WITH YOUR INFORMATION]
Repro steps
- task: Docker@2
displayName: Login to ACR
inputs:
command: login
containerRegistry: xxxxxxxxxx
- task: trivy@1
displayName: Image Scan
inputs:
image: xxxxxxxxxxxxx/xxxxx:develop
loginDockerConfig: true