azure-devopspipelineazure-devops-self-hosted-agentbuild-agent

pulling docker image using pipeline in aks hosted build agent pod


jobs: - job: RunTests displayName: Run Tests pool: name: aks_hosted_agent_pod container: image: 'python:3.11' steps: --> other stages of the pipeline.

The error is:

Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/__a/externals/node/bin/node": stat /__a/externals/node/bin/node: no such file or directory: unknown

In the pipeline logs i can see that it's able to pull the image but not able to run it, I even have node installed. This only happens when I point it to the aks hosted pod build agent, and if I direct it to the build agent which is hosted in linux or azure hosted linux agent pool no issues and it works perfectly pulling the image and running it even if I don't have the nodej installed. But for my tasks I have to make this run in the aks hosted build agent pool.

Any suggestions please.


Solution

  • For the Docker agent hosted on AKS (Azure Kubernetes Service), Docker-in-Docker is unavailable. For more details, see "Run an agent in Docker".

    enter image description here