With the latest Cursor release 1.2.2 user is asked to replace VSCode devContainer extension with the one developed by Anysphere. The new extension has following issues discovered so far:
Git credentials are not automatically mounted. Workaround: mounting ${HOME}/.gitconfig explicitly.
Sharing docker credentials with dev container is not working at all. I was not able to find any workaround so far.
Dev container runs as root user by default, for compatibility with VSCode is necessary to set remoteUser in devcontainer.json explicitly.
forwardPorts from devcontainer.json are not exposed in IDE by default. Manual forwarding is required.
VSCode devContainer extension is not available in marketplace, so there is no option to change a decision user made by accepting the prompt.
Steps to Reproduce
N/A
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Hi @SzymonS, thank you for reporting these issues.
Git credentials are not automatically mounted. Workaround: mounting ${HOME}/.gitconfig explicitly.
This is fixed in version 1.0.9 of the Anysphere Remote Containers extension.
Sharing docker credentials with dev container is not working at all. I was not able to find any workaround so far.
Could you share more why you need the docker credentials inside the container?
Dev container runs as root user by default, for compatibility with VSCode is necessary to set remoteUser in devcontainer.json explicitly.
We use the user specified by the devcontainer.json or the docker container, falling back to root if neither is set. I would recommend setting the remoteUser.
VSCode devContainer extension is not available in marketplace, so there is no option to change a decision user made by accepting the prompt.
Unfortunately, the VSCode dev containers extension is no longer available in Cursor.
forwardPorts from devcontainer.json are not exposed in IDE by default. Manual forwarding is required.
One more: When docker-compose is used as containers source, closing Cursor does not stop docker dev env.
Hi @SzymonS , we just released version 1.0.13 of the Anysphere Remote Containers extension, which respects the forwardPorts attribute and stops the containers when closing the editor (if running Docker locally).
Thanks for sharing the additional context on passing through docker credentials; we are looking into supporting this.