Skip to content

docker/pusher cannot push images to Azure Container Registry #2385

@northtyphoon

Description

@northtyphoon

Description

For image push operation, Azure Container Registry returns the upload location in the format of {path}?{query}, eg, /v2/img/test/blobs/uploads/e10c4f3b-c7a0-4dd1-806f-f79cff5b30a8?_nouploadcache=false&_state=y4CXAeAQ1WvtVnfSbDaawC4mzRHGTOvNe8S5DVAcug17Ik5hbWUiOiJpbWcvdGVzdCIsIlVVSUQiOiJlMTBjNGYzYi1jN2EwLTRkZDEtODA2Zi1mNzljZmY1YjMwYTgiLCJPZmZzZXQiOjAsIlN0YXJ0ZWRBdCI6IjIwMTgtMDYtMDVUMTc6Mjc6MTcuMTk4NDE3MjE5WiJ9

Current docker/pusher implementation assumes the location is path if it doesn't have host.

u.Path = location

Therefore push image request to ACR fails as 404 error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions