---
title: "Docker : ERROR: Get https://registry-1.docker.io/v2/: x509: certificate signed by unknown authority"
url: https://www.cyber-neurones.org/2019/12/docker-error-get-https-registry-1-docker-io-v2-x509-certificate-signed-by-unknown-authority/
date: 2019-12-20
modified: 2020-01-21
author: "Frederic"
description: "Voici mon erreur : $ sudo docker-compose up -d Pulling db (library/mariadb:10.0.23)... ERROR: Get https://registry-1.docker.io/v2/: x509: certificate signed by unknown authority Pour fixer le problème, j'ai fait : $ sudo..."
categories:
  - "Docker"
tags:
  - "Docker"
word_count: 141
---

# Docker : ERROR: Get https://registry-1.docker.io/v2/: x509: certificate signed by unknown authority

Voici mon erreur :
$ **sudo docker-compose up -d**
Pulling db (library/mariadb:10.0.23)...
**ERROR: Get https://registry-1.docker.io/v2/: x509: certificate signed by unknown authority
**
Pour fixer le problème, j'ai fait :
$ **sudo update-ca-certificates --fresh**
...
$ **openssl s_client -showcerts -verify 5 -connect registry-1.docker.io:443 < /dev/null 2>/dev/null | openssl x509 -outform PEM | tee ~/docker.crt**
...
$ **openssl s_client -showcerts -verify 5 -connect production.cloudflare.docker.com:443 < /dev/null 2>/dev/null | openssl x509 -outform PEM | tee ~/docker-com.crt**
...
$ **sudo cp ~/docker-com.crt /usr/local/share/ca-certificates/.**
...
$ **sudo cp ~/docker.crt /usr/local/share/ca-certificates/**
...
$ **sudo update-ca-certificates**
...
$ **sudo service docker restart**

Ensuite cela a fixé mon problème ... provisoirement :
$ **docker-compose up -d**
Pulling db (library/mariadb:10.0.23)...
10.0.23: Pulling from library/mariadb
7268d8f794c4: Downloading
a3ed95caeb02: Downloading
e5a99361f38c: Downloading
20b20853e29d: Downloading
9dbc63cf121f: Downloading
fdebb5c64c6c: Downloading
38152cd1ae2a: Downloading
d7f1267eb179: Downloading
cb5b075a9692: Downloading
d65a44f4573e: Downloading
**ERROR: x509: certificate signed by unknown authority**