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

后端 未结 4 1681
故里飘歌
故里飘歌 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:51

    I resolved the problem by adding the CA root .crt file the following directory: /etc/docker/certs.d/docker.io

    Steps to resolve on Unbuntu 14:04 with Docker version 1.10.0, build 590d5108 and docker-compose version 1.6.0, build d99cad6:

    • In Internet Explorer browse to docker.io/library/elasticsearch and export the companies Intermediate Root CA cert using DER format
    • On Ubuntu mkdir -p /etc/docker/certs.d/docker.io/
    • cp .crt /etc/docker/certs.d/docker.io/
    • service docker restart
    • docker-compose pull now works and elasticsearch image downloads

    More info here: https://docs.docker.com/engine/security/certificates/

提交回复
热议问题