docker container ssl certificates

后端 未结 4 1898
伪装坚强ぢ
伪装坚强ぢ 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:05

    Mount the certs onto the Docker container using -v:

    docker run -v /host/path/to/certs:/container/path/to/certs -d IMAGE_ID "update-ca-certificates"
    

提交回复
热议问题