devcontainers / devcontainers/cli

Allow options when building and using an image instead of a Dockerfile

オープン
#922 コメント 0 件 リアクション 1 件 担当者 1 名 @v-Kaniska244 が担当を希望しています GitHub で見る
feature-request
主要言語
TypeScript
スター
3k
フォーク
457
平均マージ
13時間 17分
マージ済み PR(30日)
6

説明

There is a `build.options` property that allows adding additional command line arguments to the Docker command while building. For example:
```json
{
"build": {
"dockerfile": "Dockerfile",
"options": [
"--add-host=host.docker.internal:host-gateway"
]
},
"features": {
...
}
}
```
This works great. But often the base is just an image and features are just installed while building. So there would be the following:
```json
{
"image": "debian:11",
"build": {
"options": [
"--add-host=host.docker.internal:host-gateway"
]
},
"features": {
...
}
}
```
This unfortunately does not work as `image` and `build are not allowed together. It would be great if either the `options` would work with `image` or the `runArgs` or a separate property would exist to pass additional command line options.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。