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 摘要。