Skip to content

latest tag of dotnet/sdk image is stuck at 8.0.101, missing from manifest.json #5311

Closed

Description

@aPinat

Describe the Bug

The latest tag of mcr.microsoft.com/dotnet/sdk points to an image with version 8.0.101 instead of the actual latest stable of (at time of writing) 8.0.203, just like the 8.0 tag points to.

Steps to Reproduce

Pulling mcr.microsoft.com/dotnet/sdk:latest or checking the manifest at https://mcr.microsoft.com/v2/dotnet/sdk/manifests/latest results in the image with SDK version 8.0.101 as in https://mcr.microsoft.com/v2/dotnet/sdk/manifests/8.0.101.

https://mcr.microsoft.com/v2/dotnet/sdk/manifests/8.0 points to the same image as https://mcr.microsoft.com/v2/dotnet/sdk/manifests/8.0.203.

Other Information

This also messes with dependabot trying to find the latest stable version:

updater | 2024/03/27 18:51:05 INFO <job_806298635> Checking if dotnet/sdk 8.0.101 needs updating
  proxy | 2024/03/27 18:51:05 [020] GET https://mcr.microsoft.com:443/v2/dotnet/sdk/tags/list
  proxy | 2024/03/27 18:51:05 [020] 200 https://mcr.microsoft.com:443/v2/dotnet/sdk/tags/list
  proxy | 2024/03/27 18:51:06 [022] HEAD https://mcr.microsoft.com:443/v2/dotnet/sdk/manifests/latest
  proxy | 2024/03/27 18:51:06 [022] 200 https://mcr.microsoft.com:443/v2/dotnet/sdk/manifests/latest
  proxy | 2024/03/27 18:51:06 [024] HEAD https://mcr.microsoft.com:443/v2/dotnet/sdk/manifests/8.0.203
  proxy | 2024/03/27 18:51:06 [024] 200 https://mcr.microsoft.com:443/v2/dotnet/sdk/manifests/8.0.203
  proxy | 2024/03/27 18:51:06 [026] HEAD https://mcr.microsoft.com:443/v2/dotnet/sdk/manifests/8.0.202
  proxy | 2024/03/27 18:51:06 [026] 200 https://mcr.microsoft.com:443/v2/dotnet/sdk/manifests/8.0.202
  proxy | 2024/03/27 18:51:06 [028] HEAD https://mcr.microsoft.com:443/v2/dotnet/sdk/manifests/8.0.201
  proxy | 2024/03/27 18:51:06 [028] 200 https://mcr.microsoft.com:443/v2/dotnet/sdk/manifests/8.0.201
  proxy | 2024/03/27 18:51:06 [030] HEAD https://mcr.microsoft.com:443/v2/dotnet/sdk/manifests/8.0.200
  proxy | 2024/03/27 18:51:06 [030] 200 https://mcr.microsoft.com:443/v2/dotnet/sdk/manifests/8.0.200
  proxy | 2024/03/27 18:51:06 [032] HEAD https://mcr.microsoft.com:443/v2/dotnet/sdk/manifests/8.0.101
  proxy | 2024/03/27 18:51:06 [032] 200 https://mcr.microsoft.com:443/v2/dotnet/sdk/manifests/8.0.101
updater | 2024/03/27 18:51:07 INFO <job_806298635> The `latest` tag points to the same image as the `8.0.101` image, so dependabot is treating `8.0.200` as a pre-release. The `latest` tag needs to point to `8.0.200` for Dependabot to consider it.
updater | 2024/03/27 18:51:07 INFO <job_806298635> The `latest` tag points to the same image as the `8.0.101` image, so dependabot is treating `8.0.201` as a pre-release. The `latest` tag needs to point to `8.0.201` for Dependabot to consider it.
updater | 2024/03/27 18:51:08 INFO <job_806298635> The `latest` tag points to the same image as the `8.0.101` image, so dependabot is treating `8.0.202` as a pre-release. The `latest` tag needs to point to `8.0.202` for Dependabot to consider it.
updater | 2024/03/27 18:51:08 INFO <job_806298635> The `latest` tag points to the same image as the `8.0.101` image, so dependabot is treating `8.0.203` as a pre-release. The `latest` tag needs to point to `8.0.203` for Dependabot to consider it.
updater | 2024/03/27 18:51:08 INFO <job_806298635> Latest version is 8.0.101
updater | 2024/03/27 18:51:08 INFO <job_806298635> No update needed for dotnet/sdk 8.0.101

Activity

  1. ghost added
    area-dockerfiles
    on Mar 27, 2024
  2. richlander commented on Mar 27, 2024

    @richlander
    Member

    I can repro this.

  3. aPinat commented on Mar 28, 2024

    @aPinat
    Author

    Looks like the issue lies here, where the latest tag is missing from the sharedTags:

    dotnet-docker/manifest.json

    Lines 8325 to 8344 in e5e8164

    {
    "productVersion": "$(sdk|8.0|product-version)",
    "sharedTags": {
    "$(sdk|8.0|product-version)": {},
    "8.0": {}
    },
    "platforms": [
    {
    "buildArgs": {
    "REPO": "$(Repo:aspnet)"
    },
    "dockerfile": "src/sdk/8.0/bookworm-slim/amd64",
    "dockerfileTemplate": "eng/dockerfile-templates/sdk/Dockerfile.linux",
    "os": "linux",
    "osVersion": "bookworm-slim",
    "tags": {
    "$(sdk|8.0|product-version)-bookworm-slim-amd64": {},
    "8.0-bookworm-slim-amd64": {}
    }
    },

    Also not sure why there is another entry for what looks like the same image a few lines below as well:

    dotnet-docker/manifest.json

    Lines 8377 to 8394 in e5e8164

    {
    "id": "bookworm-slim",
    "productVersion": "$(sdk|8.0|product-version)",
    "sharedTags": {
    "$(sdk|8.0|product-version)-bookworm-slim": {},
    "8.0-bookworm-slim": {}
    },
    "platforms": [
    {
    "buildArgs": {
    "REPO": "$(Repo:aspnet)"
    },
    "dockerfile": "src/sdk/8.0/bookworm-slim/amd64",
    "dockerfileTemplate": "eng/dockerfile-templates/sdk/Dockerfile.linux",
    "os": "linux",
    "osVersion": "bookworm-slim",
    "tags": {}
    },

    Looking at the runtime image where it works correctly for example, both of the above are consolidated and include the latest tag:

    dotnet-docker/manifest.json

    Lines 3417 to 3438 in e5e8164

    {
    "productVersion": "$(dotnet|8.0|product-version)",
    "sharedTags": {
    "$(dotnet|8.0|product-version)-bookworm-slim": {},
    "8.0-bookworm-slim": {},
    "$(dotnet|8.0|product-version)": {},
    "8.0": {},
    "latest": {}
    },
    "platforms": [
    {
    "buildArgs": {
    "REPO": "$(Repo:runtime-deps)"
    },
    "dockerfile": "src/runtime/8.0/bookworm-slim/amd64",
    "dockerfileTemplate": "eng/dockerfile-templates/runtime/Dockerfile.linux",
    "os": "linux",
    "osVersion": "bookworm-slim",
    "tags": {
    "$(dotnet|8.0|product-version)-bookworm-slim-amd64": {},
    "8.0-bookworm-slim-amd64": {}
    }

  4. changed the title [-]`latest` tag of `dotnet/sdk` image is stuck at 8.0.101[/-] [+]`latest` tag of `dotnet/sdk` image is stuck at 8.0.101, missing from `manifest.json`[/+] on Mar 28, 2024
  5. self-assigned this
    on Mar 28, 2024
  6. lbussell commented on Mar 28, 2024

    @lbussell
    Member

    Thanks for the investigation, I'll fix this right away.

  7. moved this from Backlog to Done in .NET Dockeron Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-dockerfilesuntriaged

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions