问题
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