When trying to reopen Cursor in a previously functioning Dev Container, it never finishes loading. The Terminal says Container started, but the status in the bottom left says “Opening Remote…” and “Setting up Dev Container (details): Starting Dev Container…”
Steps to Reproduce
Open a project workspace with a Dev Container set up
I am running the same version of cursor on my windows machine ssh’ed into a remote ubuntu server. This has been my working environment and routine for the past few years, and I have never had issues with cursor and my devcontainers, before today as well.
And yes - docker is installed, docker is running. The “socket closed without exit code” also only comes when I try and open the devcontainer. I can do stuff on the remote machine without using the devcontainer. But as soon as I start trying to build the devcontainer, this error comes…
however, even with this, opening in Dev Container always ends up in “Opening Remote…” and “Setting up Dev Container: Starting Dev Container…”, which never finishes.
to me it looks like it’s related to the Dev Containers extension, as the behaviour is so consistent across Cursor versions.
please let us know how you’re intending to address this.
run “Add Dev Container Configuration Files” from the command palette
select Microsoft’s Ubuntu container with all defaults
open the working directory in Cursor
run “Open Folder in Container” from command palette
However, I also discovered a workaround. The above works fine if one uses Podman instead of Docker. Install Podman, then in the Dev Containers extension settings change “Docker Path” to “podman”.
This is happening to me too and it is tremendously inconvenient. Yes, I can attach to containers started with the devcontainers/cli but that misses half the features of the IDE such as running pytest or having other extensions pre-installed from the devcontainer.json file
I have the same issue. I tried other versions of Cursor IDE and Dev Containers and got the same issue. Sometimes when i moved the source code to another directory and change the “name” property in devcontainer.json file, it worked. I hope you guys can fix this soon.
Hi all, thank you for this bug report. Could you try upgrading to version 1.0.28 of the Anysphere Remote Containers extension? This version includes a newer version of the devcontainers CLI which should fix this issue.