Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: TLS configuration is invalid - make sure your DOCKER_TLS_VERIFY and DOCKER_CERT_PATH are set correctly. on windows

I went through links like https://github.com/docker/compose/issues/3021 and https://github.com/docker/compose/issues/3937, but still I am facing below error:

C:\Users\pc\Downloads\docker-compose-scripts>docker-compose up --d
ERROR: TLS configuration is invalid - make sure your DOCKER_TLS_VERIFY and DOCKER_CERT_PATH are set correctly.
You might need to run `eval "$(docker-machine env default)"`

Versions of docker

C:\Users\pc>docker --version
Docker version 20.10.6, build 370c289

C:\Users\pc>docker-compose --version
docker-compose version 1.29.1, build c34c88b2
like image 933
PAA Avatar asked May 21 '21 14:05

PAA


1 Answers

I had the same problem with docker-compose under Ubuntu 20.04.2 LTS with Pycharm 2021.1.1 (Community Edition). The run configuration would not work, but it started fine in the terminal.

The problem was the docker-server enter image description here

I recreated it (with the same default settings) and it worked enter image description here

It seems to be some kind of configuration issue. I reintalled docker-compose at one point, maybe this has something to do with it. Seeing you are on Windows you will probably have to do something slightly different, but I hope it helps.

like image 165
maow Avatar answered Sep 17 '22 13:09

maow