Deploy docker registry in Jelastic

I wish to deploy a private Docker registry in Jelastic environment.

I’ve deployed the registry:2 image from the marketplace and, once logged via ssh into the container, generated the CRT and KEY file.

  • How to mount special folders in docker-compose.yml
  • owncloud cron execution within docker
  • how to install python package using tensorflow docker
  • Trying to send messages between Docker containers using rabbitmq
  • How can I pull a Docker image from a private Docker Hub repo remotely?
  • Docker remote api don't restart after my computer restart
  • I’ve defined REGISTRY_HTTP_TLS_CERTIFICATE and REGISTRY_HTTP_TLS_KEY pointing to their respective files into the container.

    I’ve exposed the 5000 port through Jelastic’s “endpoint” (resulting mapped to 11000)

    But still when I run:

    $ docker push
    The push refers to a repository [] (len: 1)
    unable to ping registry endpoint
    v2 ping attempt failed with error: Get x509: certificate is valid for , not
    v1 ping attempt failed with error: Get x509: certificate is valid for , not

  • Docker MySQL does not popoulate database with data
  • java.lang.IllegalStateException: Could not locate PropertySource and the fail fast property is set, failing
  • Starting vncserver using supervisord inside a Linux container
  • How to install a non-distro package inside Docker without wasting space?
  • I run a docker container,but after few minutes , it was killed by himself
  • ElasticBeanstalk MultiContainer docker with nginx
  • One Solution collect form web for “Deploy docker registry in Jelastic”

    There are few possible reasons:

    1. As I see there is no Common Name (CN) in your certificate. Try to
      recreate certificate with CN.
    2. Your local daemon has wrong configuration.Try this with info how to use self-signed certificates

    As for me, I’m using option “–insecure-registry”. To add it you need to edit file /etc/default/docker on your local PC and add string (in your case): DOCKER_OPTS="--insecure-registry
    OR INSECURE_REGISTRY='--insecure-registry'
    File also can be located at /etc/sysconfig/docker

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.