docker-archive / docker-registry

This is **DEPRECATED**! Please go to https://github.com/docker/distribution
Apache License 2.0
2.89k stars 877 forks source link

trusted registry: push on wrong port #1063

Closed vpusher closed 8 years ago

vpusher commented 8 years ago

I have just installed a docker Trusted Registry on premise server and having some trouble to push on it.

I configured Domain name = domain.com, HTTP Port = 5000, HTTPS port = 5043. I also configured my client to trust domain.com certificate. Accessing through the web UI at https:domain.com:5043 is ok.

However, I'm not not able to push

$ docker login https://domain.com:5043
Username (admin): admin
Password: 
Email: 
WARNING: login credentials saved in /Users/vpusher/.docker/config.json
Login Succeeded
$ docker tag nginx domain.com:5043/admin/nginx
$ docker push domain.com:5043/admin/nginx
1a908c5b60b5: Pushing 1.024 kB
dial tcp 10.235.64.84:443: connection refused

Docker 1.9 both client and server. Docker Trusted Registry 1.4.2.

Why docker is initing the connection on port 443 instead of 5043 ? There is no service listening 443 on domain.com. Is that related to the Docker registry ?

vpusher commented 8 years ago

A little more precisions:

First, I get the authentication required error:

$ docker push domain.com:5043/admin/nginx
The push refers to a repository [domain.com:5043/admin/nginx] (len: 1)
1a908c5b60b5: Preparing 
unauthorized: authentication required

Then, I create the repository through the UI, and I finally get the connection refused error:

$ docker push domain.com:5043/admin/nginx
The push refers to a repository [domain.com:5043/admin/nginx] (len: 1)
1a908c5b60b5: Pushing 1.024 kB
dial tcp 10.235.64.84:443: connection refused
dmp42 commented 8 years ago

Hi, DTR is a commercial product, with dedicated support. I encourage you to reach out to them to get help ASAP. You can certainly start with support@docker.com

Furthemore, non-default ports bug in DTR is known, though it's really a DTR-only issue (and not upstream open-source), hence there is unfortunately nothing we can do here.

I'm going to close this for book-keeping, but please mention this ticket in your mail to support.

Hope that helps.