mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
Every container and volume Floci creates was named floci-<service>-<id>. Every Floci emulator shared that prefix, so two of them on one Docker daemon collided on names, and docker volume prune --filter label=floci=true reached all of them at once. Each emulator now owns a prefix of its own; this one uses floci-aws-, and labels its resources floci_emulator=floci-aws. Existing data is neither moved nor lost. Resources with a record (RDS, MSK, OpenSearch, Amazon MQ, Kinesis Analytics savepoints, Timestream InfluxDB) persist the volume name they were created with; records from before the field existed are backfilled with the frozen legacy name so their data keeps resolving. Volumes with no record (the ECR registry, EFS-backed task and Lambda volumes) are found by probing the legacy name first. Containers are disposable and always take the current name; the UI console and the ECR registry, which survive shutdown and are adopted by name, are looked up under both prefixes so an upgrade does not orphan one that still holds its host port. Stale-container cleanup clears both names. Scripts that name containers (docker exec floci-rds-<id>) must be updated, and downgrading does not migrate back: a record written after the upgrade carries a floci-aws- name an older build will not look for. Documented in storage.md.