If you are facing the issue with the following error:
CTC1014 Docker command failed with exit code 1.
The command 'cmd /S /C dotnet restore "projectname.csproj"' returned a non-zero code: 1
Ensure that you have selected Debug mode instead of Release.