devcontainers / devcontainers/cli

Add flag similar to --pull always

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

Descripción

We are using devcontainer cli tools with dockerComposeFile. Our compose file has a number of dependency images.

Docker compose has `docker compose --pull always` flag that will
1. Pull images if compose file was changed
2. Re-create containers only for the services which images were changed

Unfortunately there're no alternatives in devcontainer cli tools:
- We can use `docker compose pull && devcontainer up` but it won't re-create updated services;
- We can use `docker compose pull && devcontainer up --remove-existing-container` but it will recreate the main (i.e. devcontainer) service even if image wasn't changed. We want to avoid re-creating the main service every time because it runs long postCreate scripts.

Is it possible to provide flag similar to --remove-existing-container that will be translated to --pull always that will recreate only changed services?

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.