Remote-SSH + Dev Containers extensions on the Mac

Describe the Bug

Anyshere’s Remote-SSH and Dev Containers do not seem to work together. However, Microsoft’s versions seem to work.

Steps to Reproduce

On my Mac, I used Anyshere’s Remote-SSH to ssh into my Linux. Afterwards, I selected Dev Containers: Open Folder in Container. However, it kept calling “docker info” on my Mac instead of the Linux.

Expected Behavior

This should use Remote-SSH to connect to the Linux’s Dev Container.

Screenshots / Screen Recordings

Operating System

MacOS
Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.0.0 (Universal)
VSCode Version: 1.96.2
Commit: 53b99ce608cba35127ae3a050c1738a959750860
Date: 2025-06-04T19:21:39.410Z (1 wk ago)
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0

Additional Information

Microsoft’s versions seem to work, but I can’t use them because I’m a new user.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

1 Like

Hi @keivenchang,

Thank you for your question. We do support connecting to Docker over SSH. We will log if Docker is not found locally, but that shouldn’t affect connecting to a container over SSH.

If you have a devcontainer.json file in you repo, you can attach via the command palette – cmd-shift-p, then “Dev Containers: Reopen in Container”.

Or, if you have a standalone container to attach to, then use the “Attach to Running Container” command.

Both of these will run on the SSH host rather than your local computer.

Thank you Ravi for the quick response, really appreciate it. I am able to start the container manually, and then “Attach to Running Container”.

However, I was told by the author of our ai-dynamo/dynamo/.devcontainer/devcontainer.json to make sure to “Open Folder in Container” instead of “Attach to Running Container” because DevContainer does a bunch of stuff when setting it up thats not happening when I just run it manually.

Would you know why “Open Folder in Container” does not work? Here are more screenshots, if it helps.


Hi @keivenchang, could you try first opening the folder on the SSH host, and then use the “Reopen in Container” command? The reopen command works over SSH and will prompt you to select a devcontainer.json file.

We are working on an update to make the “Open Folder in Container” work when connected over SSH.

So I couldn’t find “Reopen in Container” but I did actually see “Open Folder in Container” and it started executing the following for several minutes:

2025-06-16 15:32:32.858 [info] Reading devcontainer config remotely with command: read-configuration --workspace-folder /home/keivenc/dynamo --config /home/keivenc/dynamo/.devcontainer/devcontainer.json

2025-06-16 15:32:32.858 [info] Running devcontainer CLI command: /tmp/devcontainer-cli-c4d52210-e1bc-4a74-91b3-cf8d9ca278fb/cli/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/keivenc/dynamo --config /home/keivenc/dynamo/.devcontainer/devcontainer.json
...
...
2025-06-16 15:37:44.960 [info] Registering label formatter for dev-container*
2025-06-16 15:37:44.974 [info] SSH_AUTH_SOCK not set; not forwarding SSH agent socket
2025-06-16 15:37:44.974 [info] Forwarding exec server locally via tcpForward method
2025-06-16 15:37:44.975 [info] Forwarding 127.0.0.1:40663 to 127.0.0.1:0 for container f73933c9c330430532c9625edd174897ab2bc51767e66d928ae1a0fa44390cd2
2025-06-16 15:37:44.992 [info] forwarderProcess stdout: forwarder: Forwarding (remote) 127.0.0.1:40663 to (local) 127.0.0.1:0 for container f73933c9c330430532c9625edd174897ab2bc51767e66d928ae1a0fa44390cd2

Note that in-between last week and now, I exported this environment on my Mac DOCKER_HOST=tcp://mylinuxhost:myport in order to execute Docker commands from my Mac. I’m not sure if that actually made a difference. At any rate, I think it’s doing the right thing. Thank you for your help.

I removed DOCKER_HOST and it still seems to work, so somehow the Remote-SSH + Dev Containers now works.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.