docker container ssl certificates

后端 未结 4 1896
伪装坚强ぢ
伪装坚强ぢ 2020-11-29 16:32

Is there any elegant way to add ssl certificates to images that have come from docker pull?.

I\'m looking for a simple and reproducible way of adding a file into /et

4条回答
  •  孤城傲影
    2020-11-29 17:16

    As was suggested in a comment above, if the certificate store on the host is compatible with the guest, you can just mount it directly.

    On a Debian host (and container), I've successfully done:

    docker run -v /etc/ssl/certs:/etc/ssl/certs:ro ...
    

提交回复
热议问题