Docker private registry status in “Restarting (1)” Forever

I have setup a docker private registry with using registry:2 image in OEL6 using below command.

docker run -d -p 5000:5000 --restart=always --name bkdevregistry -v /var/lib/docker/certs/:/certs -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/ -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/ registry:2

I have followed the official guide to create the certificates and setting up the registry.

  • Possible to write a text file (or some other file) in a docker container but access it when container has stopped?
  • unable to connect to dockerized mysql container locally
  • docker restart,exit command, reboot the host machine
  • Unable to run docker image created from ISO
  • CoreOS member node will not start when using “etcdctl member add”
  • Spring-boot application wont boot at startup inside docker
  • The system got rebooted due to maintenance activities and after rebooting, the registry container is not working at all. It’s immediately going to the Restarting (1) status and is not changing its status.

    [root@slcn09vmf0022 ~]# docker ps
    CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                         PORTS                    NAMES
    44ad9d09d210        registry:2          "/bin/registry /etc/d"   9 minutes ago       Restarting (1) 3 minutes ago>5000/tcp   blkdevreg

    Any suggestion to bring it to normal will be appreciated.

    The log:

    time="2016-05-18T15:29:34Z" level=fatal msg="open : no such file or directory"
    time="2016-05-18T17:18:47Z" level=warning msg="No HTTP secret provided - generated random secret. This may cause problems with uploads if multiple registries are behind a load-balancer. To provide a shared secret, fill in http.secret in the configuration file or set the REGISTRY_HTTP_SECRET environment variable." go.version=go1.5.3 version=v2.3.1
    time="2016-05-18T17:18:47Z" level=info msg="redis not configured" go.version=go1.5.3 version=v2.3.1
    time="2016-05-18T17:18:47Z" level=info msg="Starting upload purge in 51m0s" go.version=go1.5.3 version=v2.3.1
    time="2016-05-18T17:18:47Z" level=info msg="using inmemory blob descriptor cache" go.version=go1.5.3 version=v2.3.1

  • How do I Configure a Docker Registry V2 with Apache and a CA certificate?
  • Docker:How to get exact time the Docker host receives the request & exact time the Docker container receives the request in docker?
  • Concourse CI will not run Hello-World after setting up with the official docker image. It fails showing “no workers”
  • how to make a non-hardcoded URL path in docker image to call backend service?
  • Cucumber on Travis CI container
  • Is it “safe” to commit a running container in docker?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.