1
votes

I'm trying to setup multi container application in Azure DevOps services. I have used "Azure Web App for Containers" task to run the application on App service with the support of docker compose. I have used "Run Services" part of Docker Compose Task and provided the docker-compose.yml file path.

When the deployment starts, the docker compose tries to create the docker network by adding alias in the prefix. I'm getting the parameter is incorrect. How to fix it?

enter image description here

Log is not retrieving in App Service Console

enter image description here

1

1 Answers

2
votes

If I did not guess wrong, you are using Hosted Windows agent?

Because this error message HNS failed with error : The parameter is incorrect. represents a known NAT network created limitation on Windows.

Solution:

Just change the agent used to Ubuntu, and it will run successfully.

enter image description here


You can see, it's Succeed with Ubuntu agent:

enter image description here

BUT Failed with VS2017 Hosted agent:

enter image description here