Problem: We are trying to run self-hosted agent on my Windows 10 (Enterprise) machine using docker-container approach as explained in article. We can create docker image successfully (for Windows) as explained in mentioned article but while executing the created image with run command we are getting below error. We tried to google it but didn’t find any resolution.
Error: Determining matching Azure Pipelines agent... Invoke-RestMethod : The remote name could not be resolved: 'dev.azure.com'
Steps Followed:
- Installed docker engine on my Windows 10 laptop
- Followed instructions mentioned in aforementioned article and able to create docker image with docker build command.
- But while running below command to run created docker image, we are getting above error.
- docker run -e AZP_URL="https://dev.azure.com/MyOrg/" -e AZP_TOKEN="XXXXXXXXXXXXXXXXXXXXXXXXXX" -e AZP_AGENT_NAME="LocalSelfHostTest1" -e AZP_POOL="LocalSelfHostTest" dockeragent:latest
XXXXXXXXX – PAT generated for my project.
We’ll appreciate your help.
Regards arvind