Devcontainer builds failing on local and remote docker hosts

Devcontainer builds are failing due to what looks like an incorrect reference to download VS Code Server. Here is a section of log from an attempt to build a new vanilla devcontainer on a remote machine:

[14181 ms] Start: Downloading VS Code Server
[14183 ms] 769e57fc532d17f247b121cdf4b6c37f1cccb540 linux-x64 stable 
[15150 ms] Failed to download VS Code Server (https://update.code.visualstudio.com/commit:769e57fc532d17f247b121cdf4b6c37f1cccb540/server-linux-x64/stable): HTTP 404 - Not Found
[15151 ms] Retrying to download VS Code Server.

And here is a similar excerpt for a failed attempt to build a vanilla container on using a local Docker host:

[24662 ms] Exit code 1
[24663 ms] Installing VS Code Server for commit 769e57fc532d17f247b121cdf4b6c37f1cccb540
[24665 ms] Start: Run in container: /bin/sh
[24671 ms] Start: Downloading VS Code Server
[24671 ms] 769e57fc532d17f247b121cdf4b6c37f1cccb540 linux-x64 stable 
[25585 ms] Failed to download VS Code Server (https://update.code.visualstudio.com/commit:769e57fc532d17f247b121cdf4b6c37f1cccb540/server-linux-x64/stable): HTTP 404 - Not Found
[25585 ms] Retrying to download VS Code Server.
[25754 ms] Start: Run: docker rm -f 93a5a5b7acf35e74a1e77842c29dc86333bc235e0dbd30b6bef08ed36510c9b8
[25806 ms] Error: Server returned 404
    at g (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:844:30682)
    at e.DownloadService.download (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:845:1567)

I have the same issue. Digged a bit into it, it seems that the Docker extension is using the IDE commit hash to identify which version of vscode server to install on the devcontainer, but because cursor is a fork of vscode, it has its own git tree, thus a different commit hash than vscode.

any ideas how to fix it?

Devcontainers are currently not supported in Cursor. Hopefully soon! In the meantime, in case anyone is interested in building an open-source devcontainer extension, this and this repo may be useful as inspiration

Too bad. That was the end of the trial of cursor - devcontainers is a essential part of our development setup.

I’d be happy to test-drive it again when devcontainers are supported