My name is Vincent, and I’ve been working in a multi-application contianer environment for over a year now.
There are half a dozen APIs running a mix of 3.1.2 and 6.0.2 versions of Entity Framework as we are mid-migration.
I had to get my computer re-imaged due to running into some issues merging my API project alongside the existing orchestration. I figured this would surely resolve any issues I had, but I must have something configured incorrectly because I can build all projects except the one I’m trying to merge.
I’ve already verified the paths, my environment file and its contents, as well as that my docker-compose isn’t being overridden incorrectly by Visual Studio.
My understanding regarding the file sharing issue has to do with a WSL2 integration issue message:
am I at least correct in thinking that my problem is thus with my WSL installation on my newly imaged Windows 11 machine?
Ah, I apologize! One thing I did forget to mention is that when i go to Docker Desktop > Builders, there is an entry for docker-windows that lists an error out, whereas the docker-linux and default builders seem installed properly:
request returned 500 Internal Server Error for API route and version http://%2F%2F.%2Fpipe%2FdockerDesktopWindowsEngine/_ping, check if the server supports the requested API version
Yeah, sounds like a WSL2 integration issue—especially after a re-image. I’d check Docker Desktop’s WSL settings and make sure drive/file sharing is properly configured.
Your first post is written, in a way that require us to have very specific context knowledge. Fine, if you want to wait for someone that actually can make sense of it.
Usually understanding docker mechanics is enough to help in most cases, though in your case there is not enough information shared, that allows someone not knowing your situation to understand it.
From what you wrote, I can only assume you want to build a Windows container image. I never created one, but I can assume that you need to “switch to windows containers…” mode, to be able to create windows container images, and start a windows container.
You find the option in the context menu of the Docker Desktop taskbar icon:
Thanks for the replies, I appreciate the push to clarify. As you pointed out, this is my first post!
I can see how my original post assumed too much background context now that it’s been pointed out.
To clarify upfront: I’m working exclusively with Linux containers via WSL2 integration, not Windows containers. Docker Desktop is set to use WSL2 as its backend, and all images involved are based on mcr.microsoft.com/dotnet/aspnet:6.0 or 3.1.
Update on path / network troubleshooting:
Solution file syntax
Discovered Portal.sln had 17 Project( but only 16 EndProject lines.
Added the missing EndProject for StarRezident.API.UnitTests → restored cleanly locally (dotnet restore) and inside Docker.
Docker / WSL2 file sharing
Verified src/Portal.sln and all *.csproj are present in the build context.
Individual dotnet restore <proj>.csproj succeeds in both container and host.
Confirms no proxy or CA issues in the container (VPN required).
Current status
With the .sln fixed and networking healthy, docker compose build my-admin-api --no-cache now completes the restore step successfully.
Question:
Given that paths, solution syntax, and network/TLS have all been ruled out, any idea what might still block the remaining service builds? Or suggestions on improving this multi-project Docker setup?
Even with your extended explanation, I still have no idea what the actual problem is, and whether knowing docker mechanics is enough to help, or whether you need someone who actually works with aspnet.
You didn’t share any Dockerfile or compose file content, or actual error message from during the build or logs.
Ack, my apologies. Got a little buried in the weeds there…
So what’s happening now is I’m trying to run docker-compose up, and now it’s a network issue that seems to be clogging the build process. I’m on my workplace’s VPN and have tried wired + wireless connections.
Hopefully including the below sheds more light on the situation?
Errors from Building
Running the Orchestra
docker-compose up:
Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/microsoft.entityframeworkcore.abstractions/index.json'.
45.02 The SSL connection could not be established, see inner exception.
45.02 Authentication failed because the remote party has closed the transport stream.
45.02 Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/fluentvalidation/index.json'.
45.02 The SSL connection could not be established, see inner exception.
45.02 Authentication failed because the remote party has closed the transport stream.
45.02 Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/microsoft.entityframeworkcore.design/index.json'.
45.02 The SSL connection could not be established, see inner exception.
45.02 Authentication failed because the remote party has closed the transport stream.
...
failed to solve: process "/bin/sh -c dotnet restore Portal.sln" did not complete successfully: exit code: 1