Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#922 0 bình luận 1 reaction 1 người được giao Xem trên GitHub

@v-Kaniska244 đang làm issue này rồi.

Từ ngày 27/11/2024.

Đánh giá

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

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
3k
Fork
461
Merge trung bình
18 phút
Pull request đã merge (30 ngày)
5

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

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của devcontainers/cli

Tất cả issue của devcontainers/cli

Issue tương tự

Thêm issue về TypeScript

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.