Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Help: Docker Envbuilder workspace not starting in correct folder and not installing VSCode extensions#19497

Unanswered
r0zzy5 asked this question inGeneral
Discussion options

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:

{    "build": {        "dockerfile": "Dockerfile"    },      "customizations": {    "vscode": {        "extensions": ["ms-vscode.cpptools-extension-pack"]    }    }}

Dockerfile:

FROM debian:13.0-slimRUN apt-get update && apt-get install --no-install-recommends -y \    ca-certificates \    build-essential \    cmake \    curl \    gdb \    git \    && rm -rf /var/lib/apt/lists/*

I'd appreciate someone taking a look to see if they can spot what I'm doing wrong.

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
1 participant
@r0zzy5

[8]ページ先頭

©2009-2025 Movatter.jp