goharbor / harbor

An open source trusted cloud native registry project that stores, signs, and scans content.

Home Page:https://goharbor.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stuck on pushing image when not specify any projects

t1mt opened this issue · comments

commented

Expected behavior and actual behavior:
docker push invalid repository fail immediately when not specify any projects.

Steps to reproduce the problem:

docker push image.harbor.com/harbor-registryctl:v2.10.2

The push refers to repository [image.harbor.com/harbor-registryctl]
8c8e4274f70f: Retrying in 5 seconds
cdef8cae2c49: Retrying in 5 seconds
bd20c4f45bc4: Retrying in 5 seconds
b00285e03979: Retrying in 5 seconds
50d4a017d046: Retrying in 5 seconds
6a65c62b44a3: Waiting
55596c913966: Waiting

Versions:
Please specify the versions of following systems.

  • harbor version: v2.5.x ,v2.10.2
  • docker engine version: 24.0.2

You need to create a namespace(project) before pushing

commented

You need to create a namespace(project) before pushing

not specify any projects

@t1mt what solution would you expect?

commented

@t1mt what solution would you expect?

If the input repository is not valid, the server should respond with a Denied request to prevent the client from retrying. This might be better.

As mentioned above, in Harbor, users has to explicitly create a project first prior to pushing any artifacts to that project.