Reputation: 163
I'm having error when trying to pull any images from docker hub. I use docker toolbox community edition on windows 8.1
Ex: when trying to pull images with command: docker pull ubuntu
I get error response like this:
Error response from daemon: Get https://registry-1.docker.io/v2/: x509: certificate signed by unknown authority
Note: I get the same error when trying login from docker quick terminal.
Upvotes: 2
Views: 11761
Reputation: 49
The problem for me is because of the mirror source:
{
"debug": true,
"experimental": false,
"registry-mirrors": ["http://hub-mirror.c.163.com"],
"insecure-registries":["registry-1.docker.io"]
}
Partial modification of Docker Engine; And about version:
Upvotes: 1
Reputation: 1500
If your OS is RHEL/Centos than follow this :
Step 1: Login as root user
Step 2: Create a directory.
$ mkdir -p /etc/pki/ca-trust/source/anchors
$ cd /etc/pki/ca-trust/source/anchors
Step 3: Download the DTR/Registry CA certificate.
$ curl -k https://registry-1.docker.io/ca -o /etc/pki/ca-
trust/source/anchors/registry-1.docker.io.crt
$ ls -ltr
root@centos:/etc/pki/ca-trust/source/anchors# ls -ltr
-rw-r--r-- 1 root root 2000 May 3 10:38 registry-1.docker.io.crt
$ chmod +x /etc/pki/ca-trust/source/anchors/registry-1.docker.io.crt
Step 4: Refresh the list of certificates to trust.
$ sudo update-ca-trust
Step 5: Restart the Docker Daemon.
$ systemctl restart docker.service
Step 6: Verification
$ docker login https://registry-1.docker.io/
Username: your-user-name
Password:
Login Succeeded
Upvotes: 1