docker compose exec -d web touch /tmp/marker

Category: Docker

docker compose exec -d web touch /tmp/marker

Run a command detached inside a service

-d runs the command in the background and returns immediately instead of streaming output. Useful for kicking off jobs inside a container without blocking. Check results later with docker compose logs or docker compose exec.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.