Files
moby/integration/network/inspect_test.go
Paweł Gronowski 6e9f1965ed integration/network: Clean up daemon storage in TestInspectNetwork
TestInspectNetwork creates 4 daemons (3 managers + 1 worker) per run
but never called Cleanup, leaving overlay storage, Raft state and logs
on disk. When the stress runner executes the test 10 times in a row
with -test.count 10, the accumulated directories fill the disk:

no space left on device: could not create daemon root
".../bundles/test-integration-flaky/TestInspectNetwork/d8488af0.../root"

Defer Cleanup after Stop for every daemon. Defers run LIFO so Stop
fires before Cleanup for each daemon, which is required because
Cleanup unmounts overlay mounts the running daemon still holds.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-07-06 17:59:05 +02:00

6.7 KiB