devcontainers / devcontainers/spec

When an image and features is defined, additional build options are not allowed

Open
#473 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
5.7k
Forks
496
PR merge metrics
No merged PRs in 30d

Description

Hello all

I found out that defining an `image` and also `features` allows to build a new image with the desired features.
Unfortunately, it is not allowed to have `image` and `build` at the same time. I need `build.options` to pass additional parameters (`add-host`) to the docker command that is used to add the feature to the original image.

The only workaround right now is to create a Dockerfile with just the image as the `FROM` and then use `build` with the Dockerfile and not the image at all. Would be nice to be able to pass options when building an image with features as well instead of only when using a Dockerfile.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.