MacOS - devContainers extension - issues

Describe the Bug

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)

Version: 1.2.2 (Universal)
VSCode Version: 1.99.3
Commit: faa03b17cce93e8a80b7d62d57f5eda6bb6ab9f0
Date: 2025-07-07T06:07:27.002Z
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

Does this stop you from using Cursor

No - Cursor works, but with this issue

2 Likes

One more: When docker-compose is used as containers source, closing Cursor does not stop docker dev env.

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.

We are looking into these two.

Hi @ravirahman shared docker credentials in dev containers are useful for docker-in-docker related scenario which might be enabled via:

  "features": {
    "ghcr.io/devcontainers/features/docker-in-docker:2": {}
  },

Enabling this feature allow us:

  • having many isolated development environments with ability to generate docker images inside devcontainer directly
  • running development process backing services with help of docker-compose/k8s cluster inside a devcontainer
1 Like

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.