I have done everything according to the instructions provided. My docker containers build with no errors and the dotnet restore was sorted out after I did a git init.
Now I keep on getting this error :
System.IO.IOException: ‘Failed to bind to address http://[::]:5000: address already in use.’
I have tried changing the Port that docker uses from 5000:5000 to 5001:5000 but the WSL exc changes as well so the error keeps on returning.
Is there any resources that I may use or have a look at that has had the same issue and resolved it.
I cannot run my application through the docker because Windows keeps on picking up that the address is already in use.
Hi @MichaelvN, hope you are well
Just to clarify, are you running the build and docker commands within WSL or in PowerShell/CMD?
Would you mind also posting the output of docker ps
? If running from within WSL, can you also post the output of sudo lsof -i -P -n | grep 5000
, or if running from PowerShell/CMD, can you post the output of netstat -aof | findstr :5000
? (Change these to 5001 if that’s what you’re currently using)