具有SSL加密的私有Docker注册表前端 [英] Private Docker registry frontend with SSL encryption
问题描述
我正在使用 https://github.com/kwk/docker-registry-frontend用于我的私人docker Registry前端。如果我的文件位于 /certs/domain.crt
和 /certs/domain.key $中,如何使用启用了SSL加密的前端c $ c>?
有一个部分 https://github.com/kwk/docker -registry-frontend#ssl-encryption 讨论了这个问题,但是我不确定要执行以下步骤
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 \
我没有使用apache。我只是将我的crt和密钥放在上述位置。在以上两个步骤中如何使用这两个?
如果我理解这两个步骤的含义,那就太好了。
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.
推荐答案
这笔交易是kwk前端有自己的apache服务应用程序,因此此步骤旨在将您的ssl证书从主机安装到前端容器内部,以便内部apache可以在启用ssl的情况下为它提供服务。
是:
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 \
这篇关于具有SSL加密的私有Docker注册表前端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!