SUSE / Portus

Authorization service and frontend for Docker registry (v2)
http://port.us.org/
Apache License 2.0
3k stars 470 forks source link

docker-compose dev. environment - not able to push #2226

Closed zapp42 closed 4 years ago

zapp42 commented 5 years ago

Description

I have followed the steps to setup a test and play environment, but I am not able to push an image.

Steps to reproduce

  1. git clone https://github.com/SUSE/Portus.git
  2. docker-compose up
  3. Login to create admin user "admin"
  4. docker login localhost:5000 with admin credentials -> succeeds
  5. Setup registry (registry:5000)
  6. docker tag any-image localhost:5000/admin/test-image
  7. docker push localhost:5000/admin/test-image

Result: denied: requested access to the resource is denied

Registry log: level=warning msg="error authorizing context: insufficient scope" go.version=go1.7.6 http.request.host="localhost:5000" http.request.id=1906de92-b0f0-47c3-8d3b-691a82c57c02 http.request.method=POST http.request.remoteaddr="172.18.0.1:50784" http.request.uri="/v2/admin/test-image/blobs/uploads/" http.request.useragent="docker/1.13.1 go/go1.12.2 kernel/5.1.20-300.fc30.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/1.13.1 \(linux\))" instance.id=8d9bf29e-f2d3-42f0-bc26-2df6533eda70 vars.name="admin/test-image" version=v2.6.2-14-ga66a4c3

stale[bot] commented 4 years ago

Thanks for all your contributions! This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.