mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
Every container and volume the emulator creates now carries `floci=true`, `floci_emulator=floci-aws`, and `floci_namespace=<value>` when `docker.resource-namespace` is configured. Previously only volumes were labelled, with a bare `floci=true`. That key is shared by floci-aws, floci-gcp and floci-az, so `docker volume prune --filter label=floci=true` destroyed volumes belonging to all three emulators at once. `floci_emulator` discriminates between them, while `floci=true` still prunes everything when that is what you want. Labels are applied at the single `createContainerCmd` choke point in `ContainerLifecycleManager`, with per-spec labels layered over the defaults via `ContainerBuilder.withLabel`/`withLabels` (a spec label wins on key conflict), so every service is covered by construction rather than per call site. Volume prefix renames and persisted volume names are deliberately out of scope.