thetansabe
(Thetansabe)
October 18, 2024, 6:57am
1
Hi everyone,
I am using Unbutu (WSL on Window), I was able to install and run docker.
But when I run docker compose up
for this yml file:
version: "2.2"
services:
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION}
environment:
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
ulimits:
memlock:
soft: -1
hard: -1
ports:
- ${ES_PORT}:9200
I have this issue:
error pulling image configuration: download failed after attempts=6: tls: failed to verify certificate: x509: certificate signed by unknown authority
I followed same topics at: Certificate Signed by Unknown Authority Docker Error , but nothing worked.
Can any one help please?
deanayalon
(Dean Ayalon)
October 18, 2024, 7:20am
2
What are you using as the $STACK_VERSION
?
thetansabe
(Thetansabe)
October 18, 2024, 7:23am
3
ELASTIC_PASSWORD=admin123
STACK_VERSION=8.15.3
ES_PORT=127.0.0.1:9200
deanayalon
(Dean Ayalon)
October 18, 2024, 8:05am
4
Well the compose file is correct, it works for me, the problem relies elsewhere. Someone more knowledgeable will come along, good luck!
rimelek
(Ákos Takács)
October 18, 2024, 10:59am
5
Please, summarize what you did exactly, so peoiple don’t have to follow the links and find out what you should have done and what you could have missed.
thetansabe
(Thetansabe)
October 21, 2024, 3:37am
6
Thanks for reaching,
I followed this post (Error response from daemon: Get https://docker.elastic.co/v2/: x509: certificate signed by unknown authority - #2 by Benli - Elastic Cloud Enterprise (ECE) - Discuss the Elastic Stack ). I was create the cert.crt file in this path: \\wsl.localhost\Ubuntu\etc\pki\ca-trust\source\anchors
I realize, the above post was for CentOS, not for Unbutu, so I checked (Docker elastic 6 unknown authority - Elasticsearch - Discuss the Elastic Stack ):
openssl s_client -connect docker.elastic.co:443 | openssl x509 -text
and here is the result:
I tried these many times:
sudo apt-get update && sudo apt-get install --only-upgrade ca-certificates
sudo systemctl restart docker
If you have any idea, please share.
rimelek
(Ákos Takács)
October 22, 2024, 1:18pm
7
What does curl gives you from the WSL distribution?
curl -vvv -L https://docker.elastic.co
and which Ubuntu distribution is in the WSL distribution?