coder / sail

Deprecated: Instant, pre-configured VS Code development environments.

Home Page:https://sail.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chrome extension: failed to run `docker info`

teddy-codes opened this issue · comments

commented

I think that we should better display that sail failed to start. Currently, the popup window (black terminal in browser) opens/displays the text/exits without me being able to fully note the error. Not sure that should be the expected behavior.

Edit:
As a note, on MacOS, this is a problem. On my Linux machine, sail runs beautifully.

commented

great that someone else is having the same issue as me !

i just installed sails and the extension and when i am on a github page it does the exact same thing.
It flashes open a window and dies before i can read anything in that window.
I am on a MAC.

Is there anything i am doing wrong ?

My env
Docker Edge. default setup.
Docker version 2.1.0.0 (36792)

Can someone from the team assist ?

any answers from the team ?

I am having the same issue on MacOS. Docker is running, and updated to the latest version. I can successfully run docker info from the terminal, but not with the sail extension.

Same problem, waiting for solution.

Same problem, waiting for solution.

Same I'm getting the following error:

2020-03-10 17:05:47 FATAL	failed to run `docker info`: exec: "docker": executable file not found in $PATH

failed to read sail output: exit status 1

My docker is at:

$ which docker
/usr/local/bin/docker

$ docker --version
Docker version 19.03.5, build 633a0ea

MacOS 10.15.3 (19D76)

One work around is to launch chrome from the terminal so it has the proper $PATH:

$ open /Applications/Google\ Chrome.app

Then the sail chrome browser extension works (or at least does not get that initial error).

I think the more appropriate fix would be to modify sail binary to append /usr/local/bin to the PATH if it detects it's running on MacOS darwin to work around this common setup.

See for similar issues with Chrome extensions:

Proposed fix for sail to include /usr/local/bin when running on MacOS to work resolve this issue:

#264