Watch: exec mode
Los mantenedores suelen responder en 1 día
@glours ya está trabajando en esto.
Desde el 12/10/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Description
In https://github.com/docker/compose/pull/12330, sync+exec mode was introduced as a watch action.
I would like to request an additional action that only performs the exec part, without syncing any files.
Use case
My application code is bind-mounted into the container using volumes. On files changes I don't need the files copied in, as the volume mount already takes care of that, only a command run inside the container: here, rr reset to restart the RoadRunner workers, which is much faster than restarting the whole container.
sync+exec is the only action that runs a command, so I use it at the moment. But syncing into the bind-mounted path writes the files back onto the host (with the container user's ownership and second-precision timestamps). The watcher sees its own write as a new change and syncs again, so it loops every second.
My current workaround is to sync into a throwaway path inside the container just to trigger the exec:
develop:
watch:
- action: sync+exec
path: ./src
target: /tmp/src-watch # throwaway; ./src is already bind-mounted at /code/src
exec:
command: rr reset http
This avoids triggering the endless loop described above.
Proposal
An exec action that runs the exec command on a change and takes no target:
develop:
watch:
- action: exec
path: ./src
exec:
command: rr reset http
Thank you!
Related:
- Lenguaje dominante
- Go
- Estrellas
- 38.4k
- Forks
- 5.9k
- Merge medio
- 2 d 5 h
- PR fusionados (30 d)
- 62
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de docker/compose
-
kind/feature
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
[BUG] `start -p <name>` treats an optional (`required: false`) dependency as requiredQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 22/100
Los mantenedores suelen responder en 1 día
-
[BUG] `mode` attribute in `configs` works but raises an unsupported warningPosiblemente ocupada @ndeloof la tomó hace 6 días. Abiertokind/bug
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
docker/compose#14288 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
[BUG] Warns about uid/gid, but with inline configs they do workPosiblemente ocupada @ndeloof la tomó hace 6 días. Abiertokind/bug
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
docker/compose#14283 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Los mantenedores suelen responder en 1 día
Todos los issues de docker/compose
Issues similares
-
bug performance scalability
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Davidjustice28/basildb#35 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
rhysd/actionlint#761 ·
-
bug needs-triage P2 tier:1-mechanical
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
krakenhavoc/cmd_and_ctrl#3652 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
puppe1990/amarra-cais#345 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
limitlessprojects/Go-Hybrid#50 ·
Los mantenedores suelen responder en 1 día