Skip to content

[BUG]: DockerV2 push broken after upgrade to Docker 29 #21841

@escherstair

Description

@escherstair

New issue checklist

Task name

DockerV2

Task version

2.172.0

Issue Description

The upgrade to Docker V29 actions/runner-images#13474 broke the behavior of DockerV2 push.
As reported in this issue moby/moby#51532 now docker push pushes an OCI image manifest instead of a single image as in the past.

And so the behavior of DockerV2 push changed too in the same way.
And this broke my CI.

I found some workaorunds (downgraging Docker, use alternatives to DockerV2, ...) but I think that behavior of DockerV2 should be restored (or a new parameter to restore the old behavior when needed).

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Ubuntu 24.04

Relevant log output

it's not an error in the pushing.
It's a chnage in what is pushed.
Media type:
application/vnd.oci.image.manifest.v1+json
instead of
application/vnd.docker.distribution.manifest.v2+json

Full task logs with system.debug enabled

Details
 

Repro steps

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions