具有 SSL 加密的私有 Docker 注册表前端 [英] Private Docker registry frontend with SSL encryption

查看:16
本文介绍了具有 SSL 加密的私有 Docker 注册表前端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 https://github.com/kwk/docker-registry-frontend 用于我的私人 docker 注册表前端.如果我的文件位于 /certs/domain.crt/certs/domain.key,如何在启用 SSL 加密的情况下使用此前端?有一节 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-frontend 有自己的 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆