HNS failed with error : The parameter is incorrect
This is a known limitation. At present windows only supports one NAT network. Removing Netnat by invoke Remove-Netnat is not supported.
Run this in powerhell.
Get-NetNat | Remove-NetNat
To prevent docker-compose from creating a new default network you can use the existing one by specifying it in docker-compose.yml:
networks: default: external: name: nat
To check for existing networks execute
docker network ls
Open the powershell(X64) in admin modeExecute below command
Get-NetNat
If it returns something like this
Then run below command in powershell
Remove-NetNat