dockstation icon indicating copy to clipboard operation
dockstation copied to clipboard

[stdout]: /bin/sh: 1: docker: not found

Open Kila14 opened this issue 4 years ago • 4 comments

Hello. I have a problem with connecting to remote server with docker:

Failed to fetch container logs: 
Command failed: docker -H tcp://127.0.0.1:3500 logs 17990c6f101826694b15e539ada41164436f9c097b0a51a9171176935d2b8b81 --tail=500 2>&1

[stdout]: /bin/sh: 1: docker: not found

I'm successfully connecting to remote server with ssh. I can see all containers. But there is error in field "Logs" and nothing to do.

Kila14 avatar Dec 09 '20 11:12 Kila14

I have the same issue.

Selectr0n avatar Mar 14 '21 22:03 Selectr0n

same here

digidomic avatar Aug 10 '21 08:08 digidomic

Having had the same issue myself, I have tracked it down to the fact that the embedded app.asar has a hardcoded path to the docker executable of /usr/bin/docker. docker on Mac isn't (and cannot be) in /usr/bin so the docker command is never found. The same could be true for other docker installations aside from on a Mac.

The path to docker (at a minimum) would need to be configurable at the connection level to get around this.

MartySkinner avatar Sep 30 '21 20:09 MartySkinner

I have the same issue while connecting to a Linux server from a Mac. Is there a workaround?

jmerhar avatar Aug 17 '23 18:08 jmerhar