Docker Swarm and self-signed Docker Registry

0 votes

I've created my cluster, it uses swarm master/nodes running inside containers.

It works well, but as soon as I try to login to my Docker Registry I'm getting error message:

$ docker -H :4000 login https://...:443
Error response from daemon: Get https://.../v1/users/: x509: certificate signed by unknown authority

Whats the issue?

Aug 22, 2018 in Docker by lina
• 8,220 points

1 answer to this question.

0 votes

Add your self signed cert to the list of trusted certificates on the host. For some reason, docker doesn't use the certificates on the daemon for this authentication. Here are the commands for a debian host:

sudo mkdir -p /usr/local/share/ca-certificates
sudo cp ca.pem /usr/local/share/ca-certificates/ca-local.crt
sudo update-ca-certificates
sudo systemctl restart docker

The docker restart at the end is required for the daemon to reload the OS certificates.

answered Aug 22, 2018 by Nilesh
• 7,040 points

Related Questions In Docker

+1 vote
1 answer

what is the difference between docker swarm and kubernetes

Both Kubernetes and Docker Swarm are important ...READ MORE

answered Sep 24, 2019 in Docker by Sirajul
• 59,110 points
0 votes
1 answer

How do I scale in Docker Swarm Mode W/Terraform Digital Ocean Load Balancing

The solution you could build for Digital ...READ MORE

answered Jun 19, 2018 in Docker by shubham
• 7,320 points
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,140 points
0 votes
1 answer

What is the difference between “expose” and “publish” in Docker?

Basically, you have three options: Neither specify EXPOSE nor -p -> ...READ MORE

answered Jul 18, 2018 in Docker by Nilesh
• 7,040 points
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria