Docker Community Forums

Share and learn in the Docker community.

Docker registry fail to start up that prompts file not found which file does exist


(Vikey) #1

I’m trying to deploy docker registry server.I do it according to the official documentation https://docs.docker.com/registry/deploying/

I have generated certificate and key, and start the registry according to document.

docker run -d -p 5000:5000 --restart=always --name registry
-v pwd/certs:/certs
-e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt
-e REGISTRY_HTTP_TLS_KEY=/certs/domain.key
registry:2

When I saw the log,

time=“2016-04-08T01:24:54Z” level=fatal msg=“open /certs/domain.crt: no such file or directory”

But I am pretty sure that the file does exist.

So What’s the problem?


(Jeff Anderson) #2

What do you see if you run this instead:

docker run -d -p 5000:5000 --restart=always --name registry
-v `pwd`/certs:/certs
-e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt
-e REGISTRY_HTTP_TLS_KEY=/certs/domain.key
registry:2 ls -lah /certs/

Do you see the same thing as you do when doing this?

ls -lah `pwd`/certs/