devcontainers / devcontainers/cli

Allow overriding host mount

未关闭
#601 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
feature-request
主要语言
TypeScript
星标
3k
派生
457
平均合并
13 小时 17 分钟
30 天内合并 PR
6

描述

I have a somewhat similar case to https://github.com/devcontainers/cli/issues/295 and https://github.com/devcontainers/cli/issues/497 where I have a "control" container managing child instances. The control container itself is *also* in Docker, so the workspace paths there don't correspond to host paths.

Things are mostly working, except I don't want to encode the host path details in the devcontainer.json (since they differ by env). A CLI option for the host's path would be a great addition.

Would it be possible / acceptable to add a CLI flag to override the host mount path configuration?

Note: I specifically want to avoid modifying the `workspaceMount` configuration in the underlying `devcontainer.json` because the host paths change dynamically with each restart.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。