Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#922 コメント 0 件 リアクション 1 件 担当者 1 名 GitHub で見る

@v-Kaniska244 がすでに取り組んでいます。

2024年11月27日 から。

評価

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

説明

feature-request

There is a build.options property that allows adding additional command line arguments to the Docker command while building. For example:

{
    "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:

{
    "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 optionswould work withimageor therunArgs` or a separate property would exist to pass additional command line options.

主要言語
TypeScript
スター
3k
フォーク
461
平均マージ
18分
マージ済み PR(30日)
5

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

devcontainers/cli のほかの issue

devcontainers/cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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