devcontainers / devcontainers/cli

Allow overriding host mount

Đang mở
#601 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
feature-request
Ngôn ngữ chính
TypeScript
Star
3k
Fork
457
Merge trung bình
13 giờ 17 phút
Pull request đã merge (30 ngày)
6

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.