Me estaba dando un error al ejecutar el command docker ps que es –
> An error occurnetworking trying to connect: Get > http://localhost:2375/v1.21/containers/json?all=1: dial tcp > 127.0.0.1:2375: ConnectEx tcp: No connection could be made because the target machine actively refused it.
Estaba tratando de corregir el error usando las instrucciones presentes en este foro – https://forums.docker.com/t/windows-an-error-occurnetworking-trying-to-connect/4384
Me enfrento a un error en el último paso, es decir, ejecutar este command en git bash –
FOR /f "tokens=*" %i IN ('"C:\Program Files\Docker Toolbox\docker-machine.exe" env --shell cmd machinename') DO %i
El error que obtengo es
bash: syntax error near unexpected token `('
¿Alguna ayuda para resolver este problema? Traté de escaping de las comillas simples y dobles y eso no funcionó.
Me enfrento a un error en el último paso, es decir, ejecutar este command en git bash –
FOR /f "tokens=*" %i IN ('"C:\Program Files\Docker Toolbox\docker-machine.exe" env --shell cmd machinename') DO %i
Esta es la syntax por batch
, en bash
esto debería funcionar:
eval `docker-machine env`