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

Fail to build image for Dockerfile with the default 7.0 image #3512

Closed
v-ruizh opened this issue May 9, 2022 · 2 comments · Fixed by #3516
Closed

Fail to build image for Dockerfile with the default 7.0 image #3512

v-ruizh opened this issue May 9, 2022 · 2 comments · Fixed by #3516

Comments

@v-ruizh
Copy link

v-ruizh commented May 9, 2022

OS: Win 10
Docker Extension Build Version: 20220506.1
.NET Version: 7.0.100-preview.3.22179.4

Repro Steps:

  1. Create and open a .NET 7.0 MVC project in VS Code.
  2. Add Docker files to this project (Linux Container) -> Right click the "Dockerfile" file -> Select "Build Image...".
  3. Check whether succeeds to build image of the "Dockerfile" file.

Expect:
Succeed to build image of the "Dockerfile" file.

Actual:
Fail to build image of the "Dockerfile" file.
image

More Info:

  1. This issue only reproduces with the default Docker image "7.0-focal".
  2. This issue does not reproduce with other images "7.0 and 7.0-alpine".
  3. This issue does not reproduce for a .NET 6.0 project.
@bwateratmsft
Copy link
Collaborator

bwateratmsft commented May 23, 2022

We have updated the scaffolding to return to just mcr.microsoft.com/dotnet/aspnet:7.0. It will no longer do the erroneous mcr.microsoft.com/dotnet/aspnet:7.0-focal. This applies to all .NET scaffolding including 6.0 and 3.1.

In the past we found that the Debian images (e.g. :6.0) were lacking in some binaries needed to support the attach scenario, but the Ubuntu images (e.g. :6.0-focal) did have them, so we changed to those. It seems the C# extension has changed some things and those binaries are no longer needed, so we have returned to the Debian images.

As a workaround to any customers hitting this, you can simply remove the -focal from the two images in the Dockerfile.

@microsoft microsoft locked and limited conversation to collaborators Jun 24, 2022
@bwateratmsft
Copy link
Collaborator

Since we'll be fixing #3647 in 1.22.2, I'm going to mark this one as a duplicate of that.

@bwateratmsft bwateratmsft closed this as not planned Won't fix, can't repro, duplicate, stale Oct 17, 2022
@bwateratmsft bwateratmsft removed this from the 1.23.0 milestone Oct 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants