mirror of
https://github.com/docker/compose.git
synced 2026-09-25 15:04:49 +00:00
The legacy test read as 'up removes leftover one-offs', but plain up
only warns about them: the removal it asserted came from the fixture's
.env declaring COMPOSE_REMOVE_ORPHANS=true (added by 'restore
setEnvWithDotEnv', d3d378b92) — an invariant the fixture kept invisible.
The scenario declares both files inline as a txtar archive, so the
mechanism under test is in plain sight, and observes the one-off's
removal from container state rather than ps output.
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
9 lines
151 B
YAML
9 lines
151 B
YAML
services:
|
|
orphan:
|
|
profiles: [run]
|
|
image: alpine
|
|
command: echo hello
|
|
test:
|
|
image: alpine
|
|
init: true
|
|
command: sleep infinity
|