Closed fredrikhr closed 4 years ago
Interesting - are you using LCOW? Remote - Containers has not worked with it historically due to problems with missing support for certain key features of Docker.
@Chuxel Correct, I am using LCOW, I need to run both windows and linux containers side-by-side. And using the Windows Containers suits me better than other alternatives.
In fact, I am using the docker service directly, without actually needing to start up Docker Desktop, but that is just convenience and reduction of overhead.
@fredrikhr Got it - good feedback. Historically LCOW had gaps around mounts that prevented it from working, but agree we should be more explicit here given your experiences. I'll take a not to do this for vscode-dev-containers as well.
The docker image
mcr.microsoft.com/dotnet/core/sdk:3.1
is a multiarch image supporting multiple operating systems and architectures. In order to ensure that a Ubuntu system image is used, the dev container should base on the .NET Core image for Ubuntu Bionic.This Docker causes issues on Docker on Windows, as
mcr.microsoft.com/dotnet/core/sdk:3.1
resolves to the .NET Core image based on Windows Server Core. Subsequently the build command will fail, as there is noapt
on Windows.