devcontainers / devcontainers/cli

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

Abierto
#922 0 comentarios 1 reacción 1 asignado Reclamado por @v-Kaniska244 Ver en GitHub
feature-request
Lenguaje dominante
TypeScript
Estrellas
3k
Forks
457
Merge medio
13 h 17 min
PR fusionados (30 d)
6

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.