Open jeusdi opened 7 years ago
@jeusdi can you copy paste the command you ran to create your htpasswd file?
You given me a clue. I've dug out a bit and I've realised I used htpasswd
command tool without -B
option:
htpasswd -Bbn user passwd > docker-registry.htpasswd
It works fine now using this command:
docker login -u user -p passwd -e xxx@xxx.xxx localhost:5000
Login Succeeded
However, as you can see before I've configured registry with TLS certificates.
docker login -u user -p passwd -e xxx@xxx.xxx https://localhost:443
I'm comming up with this message each time:
Error response from daemon: Get http://localhost:443/v1/users/: read tcp [::1]:58076->[::1]:443: read: connection reset by peer
registry is listening on 443 and 5000:
# docker port registry
443/tcp -> 0.0.0.0:443
5000/tcp -> 0.0.0.0:5000
So, I'm trying to connect to it using only secured connection...
I have the same problem,please help
I've create an htpasswd file and a certificate (a
.crt
+.key
files).After that I start my registry:
So, I'm trying to login on registry, but I'm receiving this response:
Response:
I've took a look on logs (
docker logs registry
):I've been working on this issue for a long time, but I'm quite able to figure out waht I'm doing wrong...