cloudfoundry-community / docker-registry-boshrelease

Run your own private Docker Registry in standalone mode (without requiring the public index) on AWS, OpenStack or vSphere with BOSH
MIT License
13 stars 20 forks source link

push image to registry error #26

Closed marcus-sds closed 7 years ago

marcus-sds commented 7 years ago

When I try to push the image to registry, It's failing during upload. Would you check the errors?

jhunt commented 7 years ago

Does the registry require authentication, and did you provide any?

marcus-sds commented 7 years ago

yes..I did check the .docker/config.json

On Nov 1, 2017 21:40, "James Hunt" notifications@github.com wrote:

Does the registry require authentication, and did you provide any?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cloudfoundry-community/docker-registry-boshrelease/issues/26#issuecomment-341095353, or mute the thread https://github.com/notifications/unsubscribe-auth/AVx7oc3G_1Ln7pF9R-dn2rtfZN6Sxc06ks5syGa-gaJpZM4QN8TN .

jhunt commented 7 years ago

I have no idea. Have you tried asking the upstream Docker project? It might very well be a configuration issue with the deployment / this BOSH release, but I am unsure where to even start troubleshooting.

marcus-sds commented 7 years ago

We are testing registry with elb + gorouter + dockre regisry with ssl termination. When we added below option at registry.conf http section, we could push the image. Can you add the option to registry.conf and spec?

http: "relativeurls: true"

Thanks.

jhunt commented 7 years ago

We can. Curious: what was the CLI invocation to push the Docker image CF App?

jhunt commented 7 years ago

See if 3.3.0 fixes this issue for you. There is a new docker.registry.relativeurls manifest property

marcus-sds commented 7 years ago

I tried with "CF_DOCKER_PASSWORD=YOUR-PASSWORD cf push APP-NAME --docker-image REPOURL/IMAGE --docker-username USER" It seems to be like below. Anyway it's working. Thanks. relativeurls: <%= p('docker.registry.relativeurls') == true ? 'true' : 'false' %>

Is it possible to combine uaa to auth the registry?

jhunt commented 7 years ago

Glad the relativeurls thing worked out.

As for UAA, at this time the BOSH release does not support UAA.