microsoft / vscode-docker

Docker Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker
Other
1.18k stars 508 forks source link

DockerFile created for asp.net core web api refs non-existent -focal tags #4328

Closed julielerman closed 6 days ago

julielerman commented 1 week ago

Using the function Add DockerFile to Workspace, the resulting dockerfile refers to non-existing images.

FROM mcr.microsoft.com/dotnet/aspnet:8.0-focal AS base

FROM mcr.microsoft.com/dotnet/sdk:8.0-focal AS build

There are no 8.0-focal tags (https://mcr.microsoft.com/en-us/product/dotnet/sdk/tags). 6.0 was the last version to use focal.

Perhaps these should be -alpine?

bwateratmsft commented 1 week ago

What version of the Docker extension do you have installed @julielerman? I think we did this in the past but no longer do.

julielerman commented 6 days ago

Rechecked (different laptop ) latest and now I'm seeing just 8.0, not focal. Sorry sorry nothing to see here. 🤦‍♀️