Help Center> SoftWare Repository for Container> FAQ> Image Management FAQs> Why Does the docker pull Command Fail to Be Executed?

Why Does the docker pull Command Fail to Be Executed?

Problem: When you run the docker pull command to pull an image from SWR, error message "x509: certificate signed by unknown certificates" is displayed.

Possible cause: A container engine client and SWR communicate with each other using HTTPS. When the client verifies the server certificate and finds that the root certificate installed on the client is incomplete, the error message "x509: certificate signed by unknown certificates" is displayed.

Solution: If you trust the server, skip certificate authentication. Specifically, manually configure the container engine startup parameters using either of the following two methods. Replace Image repository address with the actual SWR repository address.

  • Add the following configuration to the /etc/docker/daemon.json file. If the file does not exist, manually create it. Ensure that two-space indents are used in the configuration.
    {
      "insecure-registries":["Image repository address"]
    }
  • /etc/sysconfig/docker:
    INSECURE_REGISTRY='--insecure-registry=Image repository address'

After configuration, run the systemctl restart docker or service restart docker command to restart the container engine.