We have a self-hosted Windows pipeline.
We are trying to run docker commands, e.g. docker build .
When we attempt to run this same command from terminal it works, but the pipeline runner instead gets this error:
<span>+ docker build .</span>
<span>DEPRECATED: The legacy builder is deprecated and will be removed in a future release.</span>
<span>Install the buildx component to build images with BuildKit:</span>
<span><a href="https://docs.docker.com/go/buildx/" rel="noopener nofollow noreferrer" target="_blank">https://docs.docker.com/go/buildx/</a></span>
<span>error during connect: Post "<a href="http://localhost:2375/v1.54/build?dockerfile=Hydra%2FDockerfile&t=icognitionhydra.azurecr.io%2Fhydra&version=1" rel="noopener nofollow noreferrer" target="_blank">http://localhost:2375/v1.54/build?dockerfile=myproject%2FDockerfile&t=</a><a href="http://localhost:2375/v1.54/build?dockerfile=Hydra%2FDockerfile&t=icognitionhydra.azurecr.io%2Fhydra&version=1" rel="noopener nofollow noreferrer" target="_blank">myproject</a><a href="http://localhost:2375/v1.54/build?dockerfile=Hydra%2FDockerfile&t=icognitionhydra.azurecr.io%2Fhydra&version=1" rel="noopener nofollow noreferrer" target="_blank">.azurecr.io%2F</a><a href="http://localhost:2375/v1.54/build?dockerfile=Hydra%2FDockerfile&t=icognitionhydra.azurecr.io%2Fhydra&version=1" rel="noopener nofollow noreferrer" target="_blank">myproject</a><a href="http://localhost:2375/v1.54/build?dockerfile=Hydra%2FDockerfile&t=icognitionhydra.azurecr.io%2Fhydra&version=1" rel="noopener nofollow noreferrer" target="_blank">&version=1</a>": dial tcp [::1]:2375: connectex: No connection could be made because the target machine actively refused it.</span>