I'm trying to run a container job on my self hosted agent to read a container image from my ACR.
When you use a Microsoft hosted agent this code works:
pool:
vmImage: 'ubuntu-18.04'
container:
image: myprivate.azurecr.io/windowsservercore:1803
endpoint: my_acr_connection
So what I want is to use the following code:
pool: Default
container:
image: myprivate.azurecr.io/windowsservercore:1803
endpoint: my_acr_connection
But I get this error in the "Initialize job" step when I run the pipeline:
##[error]File not found: 'docker'
I only have one agent in Default agent pools. My agent was created following this documentation: https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/docker?view=azure-devops#linux
I guess this is something related to the agent capabilities, but I wanted to know if what I'm trying is actually feasible and if so if you could provide me some advice on how to resolve my issue.
Thank you in advance.
EDIT:
I was able to handle this error. I just needed to install docker inside the container, within the Dockerfile.
Now I receive another error, in the "Initialize containers" pipeline's step:
Error response from daemon: OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/__a/externals/node/bin/node": stat /__a/externals/node/bin/node: no such file or directory: unknown