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,166 views

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,060 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,230 points
2,403 views
0 votes
0 answers

x509: certificate signed by unknown authority - both with docker and with github

Used the below command for build- docker build ...READ MORE

Apr 21, 2022 in Docker by pranav
• 2,590 points
1,754 views
+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,020 points
2,726 views
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,060 points
3,289 views
+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
3,956 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP