coder / sail

Deprecated: Instant, pre-configured VS Code development environments.
https://sail.dev
MIT License
629 stars 36 forks source link

docker run works / sail run fails (failed to refresh code-server port...) #258

Open zibberzoo opened 4 years ago

zibberzoo commented 4 years ago

I am using WSL 2 with Docker Desktop Edge (WSL 2 integration selected).

I can run images via docker from within my Ubuntu 18.04 WSL 2 instance; however, when running via sail, browsers fail to connect to 127.0.0.1:xyz for the port xyz reported by sail run. The problem persists even when my firewall is turned off. The log files show two and only two lines. An example is:

2020-01-05 23:19:01 INFO listening on http://127.0.0.1:38997 2020-01-05 23:19:12 FATAL failed to refresh code-server port: failed while trying to find code-server port: Get http://localhost:42739: dial tcp 127.0.0.1:42739: connect: connection refused

I'm glad to try various approaches, send more configuration/log information, etc. Please advise ways to get past this issue.

Thanks, -z