Watch: exec mode
I maintainer di solito rispondono entro 1 giorno
@glours ci sta già lavorando.
Dal 12/10/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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:
- Lingua principale
- Go
- Stelle
- 38.4k
- Fork
- 5.9k
- Merge medio
- 2g 4h
- PR unite (30g)
- 73
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di docker/compose
-
Epic: Move service selection into the backend API instead of pre-filtering the project in the CLIAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
I maintainer di solito rispondono entro 1 giorno
-
Restore build concurrency limit now that bake supports itForse già presa @maxproske l’ha presa oggi. Apertakind/feature
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
[BUG] `start -p <name>` treats an optional (`required: false`) dependency as requiredForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 22/100
I maintainer di solito rispondono entro 1 giorno
-
[BUG] `mode` attribute in `configs` works but raises an unsupported warningForse già presa @ndeloof l’ha presa 8 giorni fa. Apertakind/bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
docker/compose#14288 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] Warns about uid/gid, but with inline configs they do workForse già presa @ndeloof l’ha presa 8 giorni fa. Apertakind/bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
docker/compose#14283 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di docker/compose
Issue simili
-
documentation hacktoberfest priority: low skill: good first issue status: ready for dev
Difficoltà 2/5 Mezza giornata Idoneità per principianti 85/100
hyperledger-labs/fabric-smart-client#2142 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
numberly/vault-db-injector#107 ·
I maintainer di solito rispondono entro 1 giorno
-
area/import kind/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
[DOC] Wrong sg_egress_ports range in the Terraform Databricks Guide for AWS Hub & Spoke with Network FirewallForse già presa @akhil9tiet l’ha presa oggi. Apertadocs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
databricks/terraform-provider-databricks#6080 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
spqr-coordinator usage shows 'run --config', but 'run' is not a subcommand (unknown command "run")Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
pg-sharding/spqr#3092 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno