Skip to content

Local docker registry with self-signed certificate #992

@ltetrel

Description

@ltetrel

Hello,

We are trying to set-up binderhub with our own docker registry in a local network as stated here.
We first tried with a http registry, the problem is that docker forces us to use https connection so it is not reliable.
So we tried to use https with a self-signed certificate, the issue is that binderhub just allows pulling from registry with a CA certificate.
There are two solutions :

  1. Change this line to allow
    for untrusted certificate with validate_cert=False => Fast and easy but maybe more insecure
  2. Adding the self-signed certificate to /etc/docker/certs.d like here but should be inside the building pod, with proper mounting options => lot more "complicated" but secure

Do you have some ideas about this ?

ps: Using a public registry is not ideal for us since we sould need to buy a floating ip, a domain name, and it is far less optimal in term of pushing/pulling time (pull binderhub -> registry on local network VS pull binderhub -> DNS -> registry on public network)

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions