Vscode-remote-release: Remote containers not working on Mac OS

Created on 8 Jun 2020  路  8Comments  路  Source: microsoft/vscode-remote-release

  • VSCode Version: 1.45.1
  • Local OS Version: macOS Mojave 10.14.6
  • Remote Extension/Connection Type: Docker
  • Docker Desktop for macOS: 2.3.0.3

Steps to Reproduce:

  1. Installed Docker Desktop, and insured i can successfully run containers from the command line and VSC, without problem.
  2. Installed Remote Containers 0.117.1
  3. Selected "Remote-Containers: Try a Sample..."
  4. Selected the Java sample

When I do this, the workspace resets, and pops up a dialog box that says "The 'docker' command was not found. Make sure Docker is installed". Also in the terminal, I see the following:

[0 ms] Start: Resolving remote
[3 ms] Start: Check Docker is running
[3 ms] Start: Run: docker info
[9 ms] Docker returned an error code ENOENT, message: spawn docker ENOENT

I'm running all the "latest and greatest", and Docker is working just fine from the command line. Also, the Docker extension in VSC is working fine too (I can start/stop docker-compose.yml, inspect containers and container logs, etc, from within VSC).

Any ideas what might wrong with my configuration?

containers needs-more-info

Most helpful comment

Try setting /usr/local/bin/docker as the value for the Docker CLI path setting. Does that help?
image

All 8 comments

Try starting VS Code from the terminal, maybe the updated PATH has not been picked up by the dock?

No, i tried that and the same problem occurred.

What do you get for which -a docker in the terminal?

When i do which -a docker I get back /usr/local/bin/docker

Try setting /usr/local/bin/docker as the value for the Docker CLI path setting. Does that help?
image

I've run into the same error and resolved with @chrmarti 's suggestion https://github.com/microsoft/vscode-remote-release/issues/3149#issuecomment-646588532

Hey @chrmarti, this issue might need further attention.

@vrmerlin, you can help us out by closing this issue if the problem no longer exists, or adding more information.

Closing this as we haven't heard back from OP.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gulshan picture gulshan  路  3Comments

peterkappelt picture peterkappelt  路  3Comments

Yvand picture Yvand  路  3Comments

Arunselvan-AS picture Arunselvan-AS  路  3Comments

6XAM picture 6XAM  路  3Comments