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

agent: support recreating a running devcontainer #481

Closed
coder/coder
#17308
Assignees
mafredri
@johnstcn

Description

@johnstcn

Required bycoder/coder#16424

Given a running devcontainer, provide the ability for the agent to recreate the devcontainer.

Here is the sample invocation of recreating a devcontainer as performed by the VSCode Devcontainer plugin:

[132 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Users/cian/.vscode/extensions/ms-vscode-remote.remote-containers-0.401.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /Users/cian/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-db406014-703e-46ab-b72f-1496ba8685ac1741616579267 --workspace-folder /Users/cian/src/coder/envbuilder-starter-devcontainer --workspace-mount-consistency cached --gpu-availability detect --id-label devcontainer.local_folder=/Users/cian/src/coder/envbuilder-starter-devcontainer --id-label devcontainer.config_file=/Users/cian/src/coder/envbuilder-starter-devcontainer/.devcontainer/devcontainer.json --log-level debug --log-format json --config /Users/cian/src/coder/envbuilder-starter-devcontainer/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --build-no-cache --remove-existing-container --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root --include-configuration --include-merged-configuration

Things to note:

  • Thedevcontainer-clireally needs--id-label in conjunction with--remove-existing-container in order for it to know which container to delete.
  • It's not immediately clear which of the above options arealways needed, which are specified inside thedevcontainer.json (for example,userEnvProbe can be specified in devcontainer.json), and which we need to figure out on the fly.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp