Check the forum to ensure the issue hasn’t been reported already
Tried to search on this forum, but can’t find any solution to this current problem.
Provide a clear description of the bug
When trying to open a DevContainer project using Cursor, the process gets stuck indefinitely at the stage “Downloading VS Code Server.”
The logs show repeated attempts to download the VS Code server for commit 0781e811de386a0c5bcb07ceb259df8ff8246a50, targeting architecture linux-arm64, but it never completes.
Meanwhile, the same DevContainer setup works correctly in standard VS Code (latest stable), suggesting this is a Cursor-specific issue.
Explain how to reproduce the bug (if known)
- Open a project with a .devcontainer setup in Cursor (using Microsoft Artifact Registry as the base image).
- Cursor attempts to build the devcontainer.
- It reaches “Installing VS Code Server” and gets stuck at:
1325 ms] Installing VS Code Server for commit 0781e811de386a0c5bcb07ceb259df8ff8246a50
[1325 ms] Start: Run in container: /bin/sh
[1325 ms] Start: Downloading VS Code Server
[1325 ms] 0781e811de386a0c5bcb07ceb259df8ff8246a50 linux-arm64 stable
- It never proceeds beyond this point (even after more than 1 hour).
Here’s my decontainer setup:
devcontainer.json
{
"name": "Node.js & PostgreSQL",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"features": {
"ghcr.io/devcontainers-extra/features/typescript:2": {}
}
}
docker-compose.yml:
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
volumes:
- ../..:/workspaces:cached
# Overrides default command so things don't shut down after the process ends.
command: sleep infinity
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
network_mode: service:db
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
# (Adding the "ports" property to this file will not forward from a Codespace.)
db:
image: postgres:latest
restart: unless-stopped
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
# Add "forwardPorts": ["5432"] to **devcontainer.json** to forward PostgreSQL locally.
# (Adding the "ports" property to this file will not forward from a Codespace.)
volumes:
postgres-data:
dockerfile:
FROM mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm
Attach screenshots or recordings (e.g.,
.jpg
, .png
, .mp4
).
Tell us your operating system and your Cursor version (e.g.,
Windows, 0.x.x
).
Device: MacBook Pro M3 Pro
OS: MacOS Sequoia 15.4.1 (24E263)
Cursor:
Version: 0.49.6
VSCode Version: 1.96.2
Commit: 0781e811de386a0c5bcb07ceb259df8ff8246a50
Date: 2025-04-25T05:07:16.071Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.4.0
Tell us if the issue stops you from using Cursor.
Yes, I really rely on DevContainer for my development flow