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

Container doesn't work when enabling HTTPS #191

Open
amit7itz opened this issue Dec 3, 2019 · 2 comments
Open

Container doesn't work when enabling HTTPS #191

amit7itz opened this issue Dec 3, 2019 · 2 comments

Comments

@amit7itz
Copy link

amit7itz commented Dec 3, 2019

Hi!
I set up the docker registry manager with HTTP worked fine,
But when I enable the https, for some reason it just exits with error code 0 after a second.

[root@registry docker-registry-manager]# docker-compose up
Starting docker-registry-manager ... done
Attaching to docker-registry-manager
docker-registry-manager    | time="2019-12-03T17:20:24Z" level=info msg="Using registries located in /app with file name registries" file=allregistries.go line=161 source=app
docker-registry-manager    | time="2019-12-03T17:20:24Z" level=info msg="Added new registry: registry" file=allregistries.go line=110 source=app
docker-registry-manager    | time="2019-12-03T17:20:24Z" level=info msg="Admin server Running on :8088" file=log.go line=610 source=beego
docker-registry-manager    | time="2019-12-03T17:20:24Z" level=info msg="https server Running on https://:8080" file=log.go line=610 source=beego
docker-registry-manager exited with code 0

This is the docker-compose

version: '2'

services:
  docker-registry-manager:
    container_name: docker-registry-manager
    image: snagles/docker-registry-manager
    ports:
      - "8080:8080"
    volumes:
      - ./registries.yml:/app/registries.yml
      - /root/certs:/app/certs

    environment:
      - MANAGER_PORT=8080
      - MANAGER_REGISTRIES=/app/registries.yml
      - MANAGER_LOG_LEVEL=debug
      - MANAGER_ENABLE_HTTPS=true
      - MANAGER_KEY=/app/certs/domain.crt
      - MANAGER_CERTIFICATE=/app/certs/domain.key

Help please? :)

@CezaryL-tech
Copy link

CezaryL-tech commented Apr 6, 2020

Should be:

  • MANAGER_KEY=/app/certs/domain.key
  • MANAGER_CERTIFICATE=/app/certs/domain.crt

@davehouser1
Copy link

@Shar4ky-coder, thanks for confirming this.
I checked the docker-compose.yml file, line 19 and 20 have this listed.

      #- MANAGER_KEY=/app/ssl.crt
      #- MANAGER_CERTIFICATE=/app/ssl.key

I can only assume @amit7itz did the same as me, and just uncommented those lines. I would say to close this case, someone should fix the typo in that file to avoid others running into the same issue.

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