Cursor Dev Container Windows WSL2 startup

Describe the Bug

When trying to relaunc a folder in a dev container with the given configuration, it doesn’t work.
Specifically tested on Windows WSL2.
There’s an issue with the paths.

Steps to Reproduce

Open a folder in cursor. Under the directory .devcontainer create a devcontainer.json file:

{
	"name": "Python 3",
	"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
	"features": {
		"ghcr.io/devcontainers/features/git:1": {
			"ppa": true,
			"version": "latest"
		},
		"ghcr.io/nikobockerman/devcontainer-features/poetry-persistent-cache:1": {},
		"ghcr.io/devcontainers-extra/features/poetry:2": {
			"version": "latest"
		}
	}
}

Expected Behavior

The folder should reopen in the dev container but instead it just errors.

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.4 (user setup)
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90
Date: 2025-07-10T17:09:01.383Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

Additional Information

2025-07-14 01:30:54.576 [info] Searching for devcontainer.json files
2025-07-14 01:30:54.625 [info] Found 1 devcontainer.json files: \home\jonirap\dev\exercise.devcontainer\devcontainer.json
2025-07-14 01:30:54.625 [info] Reading devcontainer config with command: read-configuration --workspace-folder \home\jonirap\dev\exercise --config \home\jonirap\dev\exercise.devcontainer\devcontainer.json
2025-07-14 01:30:54.644 [info] Running devcontainer CLI command: c:\Users\jonir.cursor\extensions\anysphere.remote-containers-1.0.13\dist@devcontainers\cli\dist\spec-node\devContainersSpecCLI.js read-configuration --workspace-folder \home\jonirap\dev\exercise --config \home\jonirap\dev\exercise.devcontainer\devcontainer.json --docker-path docker
2025-07-14 01:30:54.644 [info] Spawned process 31148: ‘C:\Users\jonir\AppData\Local\Programs\cursor\Cursor.exe’ ‘c:\Users\jonir.cursor\extensions\anysphere.remote-containers-1.0.13\dist@devcontainers\cli\dist\spec-node\devContainersSpecCLI.js’ ‘read-configuration’ ‘–workspace-folder’ ‘\home\jonirap\dev\exercise’ ‘–config’ ‘\home\jonirap\dev\exercise.devcontainer\devcontainer.json’ ‘–docker-path’ ‘docker’
2025-07-14 01:30:54.644 [info] [read-configuration]: Running command: node
2025-07-14 01:30:54.927 [info] [read-configuration][stderr]: [2025-07-13T22:30:54.924Z] @devcontainers/cli 0.75.0. Node.js v20.19.0. win32 10.0.26100 x64.
2025-07-14 01:30:54.945 [error] [read-configuration]: Running command: node
2025-07-14 01:30:54.947 [error] Failed to read devcontainer config [read-configuration] Command failed with exit code 1: stdout:
2025-07-14 01:30:54.948 [error] Failed to reopen folder in container Failed to read devcontainer configuration

Does this stop you from using Cursor

Yes - Cursor is unusable

Hi @jonirap, to connect to a dev container opened in WSL, does it work if you first open a WSL window, and then attach to the container from within the WSL remote window?

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