I have the same problem, whereby I try to execute docker command from windows 10 to Docker on OS X 10.
as below:
kanch@LAPTOP-KANCH:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
kanch@LAPTOP-KANCH:~$ docker -H tcp://192.168.1.104:2375 ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
kanch@LAPTOP-KANCH:~$ docker -H ssh://[email protected] ps
error during connect: Get http://docker/v1.40/containers/json: command [ssh -l platform 192.168.1.104 -- docker system dial-stdio] has exited with exit status 127, please make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=zsh:1: command not found: docker
tcp:// just won't works as the reason is command docker not found.
I found in issues it is possible related to the shell I use, then I tried powershell, cmd, bash, git bash. NONE of them works.
is there any fix for this?
On the remote host, PATH needs to be set.
Most helpful comment
On the remote host, PATH needs to be set.