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

Help with insecure config #76

Closed
RANGERBEE opened this issue Apr 9, 2019 · 3 comments · Fixed by #98

Comments

@RANGERBEE
Copy link

commented Apr 9, 2019

Hey Joxit,

Thanks for quick and slick UI that just plain works!

Can you tell me how to get an insecure configuration working. I just cant seem to figure out how to push or pull from a docker client. I get https errors.. I know its probably because no TLS certs are loaded on either side. I would like s simple insecure registry is all.

Could you help with a quick config?

My host is Centos7

Running the docker compose "credentials" file out of examples/ui-as-proxy to get all spun up.

Thanks!!

@RANGERBEE

This comment has been minimized.

Copy link
Author

commented Apr 9, 2019

I have fixed with the following simple.yml

version: '2.0'
services:
  registry:
    image: registry:2.6.2
    volumes:
      - ./registry-data:/var/lib/registry
    ports:
      - 5000:5000
    networks:
      - docker-registry-ui
    environment:
      - REGISTRY_HTTP_HEADERS_Access-Control-Allow-Origin=['*']

  ui:
    image: joxit/docker-registry-ui:static
    ports:
      - 80:80
    environment:
      - REGISTRY_TITLE=My Private Docker Registry
      - REGISTRY_URL=http://registry:5000
    depends_on:
      - registry
    networks:
      - docker-registry-ui

networks:
  docker-registry-ui:

AND on remote docker client making the PUSH...

I get helped from [http://stackoverflow.com/questions/38695515/can-not-pull-push-images-after-update-docker-to-1-12], two steps in total to solve this issue:

Create or modify /etc/docker/daemon.json
{ "insecure-registries":["myregistry.example.com:5000"] }

Restart docker daemon
sudo service docker restart

I hope this may help others.

Thank you again for the simple and effective UI to the registry!

@Joxit

This comment has been minimized.

Copy link
Owner

commented Apr 10, 2019

Hello,
Thank you for your issue and its resolution ! I will add this use case in the readme ASAP 😊

@Joxit

This comment has been minimized.

Copy link
Owner

commented Apr 10, 2019

I'm glad that you like my project, it's a pleasure ☺️

@Joxit Joxit referenced this issue Sep 5, 2019

@Joxit Joxit closed this in #98 Sep 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.