- Notifications
You must be signed in to change notification settings - Fork1k
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I am trying to use a Docker (Envbuilder) workspace in Coder for development in a dev container and for the most part it is working as expected. I can create the workspace, checkout a git repository with my dev container definition in it and it will build the container and allow me to use both VSCode desktop and code-server in the browser to develop inside the container. My issue (or probably more of a minor inconvenience than an actual issue) is that both VSCode desktop and code-server start in the /workspaces/ folder instead of the /workspaces/[project name] folder and the VSCode extensions defined in the devcontainer.json do not get installed. If I checkout my git repo in Windows and allow VSCode desktop to run the devcontainer in WSL2, everything works as expected: it starts in the /workspaces/[project name] folder and the extensions get installed correctly. So it seems that I have configured the devcontainer.json correctly, at least for VSCode desktop. Does Coder require a slightly different configuration? It what I am trying to do possible? I have included my devcontainer definition below: devcontainer.json:
Dockerfile:
I'd appreciate someone taking a look to see if they can spot what I'm doing wrong. |
BetaWas this translation helpful?Give feedback.