microsoft / vscode-remote-try-dotnet

.NET sample project for trying out Dev Containers
https://aka.ms/vscode-remote/containers/getting-started
MIT License
230 stars 180 forks source link

Base Dev-Container on Ubuntu Bionic image #15

Closed fredrikhr closed 4 years ago

fredrikhr commented 4 years ago

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 no apt on Windows.

Chuxel commented 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.

fredrikhr commented 4 years ago

@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.

Chuxel commented 4 years ago

@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.