microsoft / vscode-dev-containers

NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!
https://aka.ms/vscode-remote
MIT License
4.71k stars 1.4k forks source link

Be able target patch versions for docker dotnet images #1610

Open EverybodyKurts opened 1 year ago

EverybodyKurts commented 1 year ago

Relates to: Remote - Containers

I'd like to target the patch version of a dotnet release when referencing a docker image, like so:

FROM mcr.microsoft.com/vscode/devcontainers/dotnet:6.0.300
bamurtaugh commented 1 year ago

Thanks for opening @EverybodyKurts!

@samruddhikhandale thoughts?

samruddhikhandale commented 1 year ago

Hi @EverybodyKurts,

We're starting to migrate contents of this repo to the devcontainers org, as part of the work on the open dev container specification.

We are now publishing images from devcontainers/images with path mcr.microsoft.com/devcontainers/*. For more details, you can review the announcement issue.

For backwards compatibility, we are dual publishing, hence images with path mcr.microsoft.com/vscode/devcontainers/* works just fine. However, it would be nice to switch to the newer image paths.

To answer your question, here's the complete list of available tags - link and you can reference the latest patch version (say for dotnet 6) as follows -

FROM mcr.microsoft.com/devcontainers/dotnet:0.203.5-6.0

Refer to the README for more details.