Private Docker registry frontend with SSL encryption

孤街浪徒 提交于 2019-12-08 05:27:06

问题


I am using https://github.com/kwk/docker-registry-frontend for my private docker registry frontend. How to use this frontend with SSL encryption enabled if I have my files at /certs/domain.crt and /certs/domain.key? There is one section https://github.com/kwk/docker-registry-frontend#ssl-encryption which talks about it but I'm not sure about following steps

-v $PWD/server.crt:/etc/apache2/server.crt:ro \

-v $PWD/server.key:/etc/apache2/server.key:ro \

I'm not using apache. I simply have my crt and key at location mentioned above. How to use it these two at above two steps? It would be good if I understand the meaning of these two steps.


回答1:


The deal is the kwk-frontend has its own apache to serve application, so this step is aimed to mount yours ssl certificates from host machine to inside of frontend container, so internal apache can serve it with ssl enabled.
In your particular case it will be:

-v /certs/domain.crt:/etc/apache2/server.crt:ro \
-v /certs/domain.key:/etc/apache2/server.key:ro \


来源:https://stackoverflow.com/questions/40087966/private-docker-registry-frontend-with-ssl-encryption

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!