Skip to content

crane: crane copy from GCP GAR to dockerhub fails with invalid repository name #1679

@geekflyer

Description

@geekflyer

Describe the bug

crane copy from GCP GAR (Google Artifact Registry) to Docker Hub stopped working since yesterday and fails with:

unexpected status code 400 Bad Request: {"details":"invalid repository name"}

To Reproduce

Create a private GCP GAR docker registry and copy an image from it to dockerhub:

E.g.

crane copy us-docker.pkg.dev/aptos-registry/docker/indexer-grpc:ad7aac200e5f5af409568ca6f645e867be8b0e41 aptoslabs/indexer-grpc:ad7aac200e5f5af409568ca6f645e867be8b0e41

image

Expected behavior

It should succeed

Additional context

We use crane in our CI workflow (https://github.com/aptos-labs/aptos-core/blob/main/docker/release-images.mjs#L166-L167) incl. for nighly image publishes and this stopped working only about 36h ago. Possibly some changes on the dockerhub API?

Note I can not reproduce this issue when copying an image from GAR to GAR or from dockerhub to dockerhub, but only when copying from GAR to dockerhub.

  • Output of crane version: 0.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions