docker-compose pull results in x509: certificate signed by unknown authority

后端 未结 4 1676
故里飘歌
故里飘歌 2021-02-19 03:15

I\'m hitting the following error when trying to pull the elastcisearch images from dockerhub.

docker-compose pull
Pulling elasticsearch (elasticsearch:2.2.0)...
         


        
4条回答
  •  爱一瞬间的悲伤
    2021-02-19 03:52

    1. Export the SSL certificate using Firefox.
      • Hit the URL in Firefox
      • Click on advanced, if you see warning or the lock on the URL bar.
      • Export the certificate(In Details tab)
      • Let's assume the cert file name is your.ssl.server.name.crt
    2. Copy CA cert to /usr/local/share/ca-certificates.
    3. sudo update-ca-certificates
    4. sudo service docker restart

提交回复
热议问题