Docker behind proxy that changes ssl certificate

后端 未结 3 512
孤独总比滥情好
孤独总比滥情好 2020-12-14 08:59

I am trying to run the following docker command:

docker run -i -t ubuntu /bin/bash

But I get the error:

Unable to find imag         


        
3条回答
  •  再見小時候
    2020-12-14 09:14

    According to http://golang.org/src/pkg/crypto/x509/root_unix.go, you should append your certificate to one of the following:

    • /etc/ssl/certs/ca-certificates.crt
    • /etc/pki/tls/certs/ca-bundle.crt
    • /etc/ssl/ca-bundle.pem
    • /etc/ssl/cert.pem
    • /usr/local/share/certs/ca-root-nss.crt

    Find the one that exists on your system, and append your certificate to it.

    (And be ready to do it again when you upgrade the package containing that file...)

    I hope there is a better method, but this is the only one I found so far :-)

提交回复
热议问题