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

后端 未结 4 1710
故里飘歌
故里飘歌 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条回答
  •  猫巷女王i
    2021-02-19 03:53

    this might happen on local or user registries that might not have root CA signed certificates (these might be self singed). You can use the following steps use these registries:

    1. sudo systemctl edit docker.service

    2. add the registry like this:

    [Service]
    ExecStart=
    ExecStart=/usr/bin/dockerd  --insecure-registry  
    
    1. Save the file.
    2. Reload the configuration with sudo systemctl daemon-reload
    3. Restart Docker with sudo systemctl restart docker.service

提交回复
热议问题