Dev container connection error

Describe the Bug

Issue Summary: Cursor Dev Container Fails to Connect

I’ve encountered an issue where Cursor Dev Container fails to connect only when using a Docker image that I built myself.

When using a colleague’s container (built from a different image), everything works as expected. However, with my own image, I consistently get the following error:

Error: Couldn't install Cursor Server, install script returned non-zero exit status
Error server token file not found /home/sungjoo.lim/.cursor-server/.<commit>.token

I’ve already confirmed that:

The dev container starts and runs normally.

.devcontainer/devcontainer.json exists and is valid.

Docker version and Cursor setup are identical to other working environments.

It seems like something in my custom image is preventing Cursor from installing its remote server properly. Could you help me identify what might be missing in the image, or how to fix this issue?

Thanks in advance for your support.

Steps to Reproduce

  1. Build a custom Docker image using a Dockerfile (based on Ubuntu 22.04)
    docker build -t my-dev-image .
  2. docker run -d --name my-container bash
  3. Press “Open in Dev Container”
  4. Select the image: my-dev-image
  5. The container launches, but I’ll see the Cursor Server install error

I’m not sure where the .devcontainer/devcontainer.json is located (if any). The image runs fine in Docker, but fails only in Cursor.

Could you help me figure out what might be missing from my image, or how to fix this?

Screenshots / Screen Recordings

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.4 (Universal)
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90
Date: 2025-07-10T16:55:16.443Z
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

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