Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Registry with letsencrypt doesn't work. #2740

Closed
demshin opened this issue Oct 25, 2018 · 3 comments
Closed

Docker Registry with letsencrypt doesn't work. #2740

demshin opened this issue Oct 25, 2018 · 3 comments

Comments

@demshin
Copy link

demshin commented Oct 25, 2018

Env:
ubuntu 18.04
docker 18.06.1-ce, build e68fc7a
docker-compose 1.22.0, build f46880fe

My docker-compose.yml:

  registry:
  restart: always
  image: registry:latest
  ports:
    - 443:5000
  environment:
    REGISTRY_HTTP_TLS_LETSENCRYPT_CACHEFILE: /cache.letsencrypt
    REGISTRY_HTTP_TLS_LETSENCRYPT_EMAIL: myemail@gmail.com
    REGISTRY_AUTH: htpasswd
    REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
    REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
    REGISTRY_LOG_ACCESSLOG_DISABLED: "true"
    REGISTRY_LOG_LEVEL: "error"
    REGISTRY_STORAGE_DELETE_ENABLED: "true"
    REGISTRY_STORAGE: "s3"
    REGISTRY_STORAGE_S3_ACCESSKEY: "accesskey"
    REGISTRY_STORAGE_S3_SECRETKEY: "secretkey"
    REGISTRY_STORAGE_S3_REGION: "us-east-1"
    REGISTRY_STORAGE_S3_BUCKET: "s3bucket-for-docker-images"
    REGISTRY_HTTP_ADDR: "0.0.0.0:443"
    REGISTRY_HTTP_HOST: "https://registry.examle.com"
  volumes:
    - /home/ubuntu/docker-auth:/auth

I run docker-compose up and get:
registry_1 | 2018/10/25 06:04:07 [INFO] acme: Registering account for demshin@gmail.com
and nothing else happens.

When I try connect to registry from my computer:
docker login registry.examle.com -u login_name
I get on my computer:
Error response from daemon: Get https://registry.examle.com/v2/: remote error: tls: internal error
On server:

registry_1  | 2018/10/25 06:04:35 [INFO][registry.examle.com] acme: Could not find solver for: tls-alpn-01
registry_1  | 2018/10/25 06:04:35 [INFO][registry.examle.com] acme: Could not find solver for: dns-01
registry_1  | 2018/10/25 06:04:35 [INFO][registry.examle.com] acme: Could not find solver for: http-01
registry_1  | 2018/10/25 06:04:35 http: TLS handshake error from XX.XX.XX.XX:19105: map[registry.examle.com:[registry.examle.com] acme: Could not determine solvers]```
@demshin
Copy link
Author

demshin commented Nov 6, 2018

Ок. I found issue why Docker Registry doesn't work.

@jaydrogers
Copy link

See my workaround that I am using here: #2545 (comment)

This might work for your set up and it manages Lets Encrypt automatically.

@manishtomar
Copy link
Contributor

Closing as duplicate of #2545

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants