Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

ERRO: Não foi possível conectar-se ao daemon do Docker em http + docker: // localhost - está em execução?

Boa Noite, Galera !!!

Estou enfrentando um problema com o Docker, estou executando esse comando para interpretação para na linha de comando, segue abaixo:

vagrant @ localhost open-loyalty] $ docker-compose -f docker / docker-compose.yml up -d

ERROR: Couldn't connect to Docker daemon at http + docker: // localhost - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

Alguém sabe dizer o que seria , essa situação com Docker ?

Abraços

1 resposta
solução!

Pra quem tiver esse erro acontecendo segue a solução:

I had this problem and did not want to mess things up using sudo . When investigating, I tried to get some info :

docker info Surprinsingly, I had the following error :

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http:///var/run/docker.sock/v1.38/info: dial unix /var/run/docker.sock: connect: permission denied

For some reason I did not have enough privileges, the following command solved my problem :

sudo chown $USER /var/run/docker.sock

Et voilà !

SITE pra consultar . https://stackoverflow.com/questions/34532696/docker-compose-cant-connect-to-docker-daemon

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software