mirror of
https://github.com/docker/compose.git
synced 2026-11-21 15:40:52 +00:00
A pre_start runner carries the project and service labels but not the one-off label the monitor's event filter requires, so its exit never reaches the session. Nothing locked that: a runner exiting successfully would otherwise win over the service's own exit code under --exit-code-from, or abort the application under --abort-on-container-exit. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
7 lines
140 B
YAML
7 lines
140 B
YAML
services:
|
|
app:
|
|
image: alpine
|
|
command: sh -c 'sleep 2; exit 3'
|
|
pre_start:
|
|
- image: alpine
|
|
command: echo hook-ran
|