Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It will add a Linux image in Dockerfile when adding Docker files (Windows OS selected) for a .NET project #3018

Closed
v-ruizh opened this issue Jun 18, 2021 · 1 comment

Comments

@v-ruizh
Copy link

v-ruizh commented Jun 18, 2021

OS: Win 10
Build Version: 20210615.1

Repro Steps:

  1. Switch the Docker Desktop to windows container.
  2. Create and open a .NET Core MVC project in VS Code.
  3. Add Docker files to this project with Windows OS selected.
  4. Check the image name in Dockerfile.

Expect:
The image name is "xxx/aspnet:5.0".
image

Actual:
The image name is "xxx/aspnet:5.0-focal" which is a Linux image.
image

More Info:

  1. Fail to debug the project with the default added image in windows container.
  2. It seems a regression from this PR Use Ubuntu 20.04-based images for .NET scaffolding #2996.
@v-ruizh v-ruizh added the AT-CTI label Jun 18, 2021
@karolz-ms
Copy link
Contributor

@v-ruizh correct, we switched to Ubuntu-based images because the default image does not contain binaries (ps) necessary for debugger attach (process picker) to work.

We should discuss what to do here in 1.15 timeframe

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants