devcontainers / devcontainers/cli

Proposal: add flag to skip bind mounts where host folder doesn't exist

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

描述

When working with dev containers locally (e.g. in Visual Studio Code), it can be productive to mount host folders in the container (e.g. `.azure` to share login credentials into the container).

When using such a dev container in CI, you can run into issues because the host folder doesn't exist (see https://github.com/devcontainers/ci/issues/166).

One way to address this would be to add a `--skip-non-existent-bind-mounts` flag, and have the CLI strip out any bind mounts where the host folder doesn't exist. This flag wouldn't be specified via VS Code (preserving the existing behaviour), but could be specified in CI if desired (e.g. added as an option to https://github.com/devcontainers/ci)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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