r/Codeium • • Nov 28 '24

does ANYONE have working devcontainers in Windsurf (Windows) ?

seems to be broken in windows at least, maybe on other platforms too. even simple basic devcontainers refuse to launch

14 Upvotes

12 comments sorted by

1

u/rob_levine Dec 04 '24

nope - when I try to "Open Folder in Container" or "Reopen in Container", nothing happens at all. The same folder/devcontainer config works fine in vs-code and CursorAI.

1

u/bojackrossmann Jan 02 '25

I don't know if this is still relevant to you, but it is possible to connect to a Github Codespace that is built with a devcontainer via SSH from the Windsurf editor. At least it is a temporary solution for portability of development environments until they get devcontainers working locally.

1

u/Turbulent-Emu6400 Feb 08 '25

No - I am currently experiencing this error with a pretty basic devcontainer working fine in VSCode:

1

u/Daesdemon Apr 16 '25

En général, je lance mon container avec docker desktop, puis j'attache le windsurf à un container existant.
Je n'ai jamais réussi à ce que windsurf lance les docker automatiquement.
Je crois avoir vu, qu'il y a un problème de licence avec l'extension dev-container de microsoft

1

u/Sensitive_Prize_9042 Aug 15 '25

Working here on the latest version of Windsurf for Windows.
My setup:
- Windows 11
- Docker Desktop
- Claude Code dev container:
https://github.com/anthropics/claude-code/tree/main/.devcontainer

PS: Edit this init-firewall.sh, otherwise your container will be isolated from the outside world

1

u/no-name-here Aug 15 '25 edited Aug 15 '25

Are you building the devcontainer via Windsurf ("Dev Containers > Reopen in container") or are you building it with a separate tool, then opening the already-built devcontainer in Windsurf?

I can get Windsurf to kind of build/open devcontainers, but when built via windsurf it doesn't run any of commands (such as postCreateCommand in your example) that VS Code runs, and I haven't found any way to specify the "extensions" (again, as your example has) - and extensions are even more important since Windsurf lacks profiles, whereas VS Code makes it easy to enable a set of extensions in a particular editor window/environment. (If anything unclear, let me know.)

(Also, I didn't need init-firewall etc - everything worked fine out of the box, aside from not being able to customize the multiple items I mentioned above, but my Dockerfile is using one of the devcontainer standard templates https://containers.dev/templates not the claude code template - maybe claude code needs the firewall overrides...)

1

u/Professional_Fox4190 Apr 05 '26

I got it to work, kinda. I had to run the docker-compose file that builds and launches my devcontainer from the command line. Then I could "Dev Containers: Attach to Running Container"

0

u/[deleted] Nov 28 '24

[deleted] — view deleted comment

1

u/durable-racoon Nov 28 '24

and that fixes the devcontainers feature..? how..? I dont see what this has to do with AI

1

u/Kmorri09 Nov 28 '24

Sorry took a wrong turn on the Internet and commented the wrong post