mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
In awsvpc mode every AWS task receives its own ENI, so a portMapping's hostPort carries no host-binding semantics. Floci was publishing it literally on the single local Docker host, so two tasks of the same service — or two services sharing a port — collided on start. awsvpc mappings now get a dynamic host port in native mode, or expose-only in Docker mode where consumers reach containers via the docker network IP. bridge and host mode keep publishing hostPort literally, matching AWS. Also fix the leak this surfaced: a failed start in ContainerLifecycleManager.createAndStart left the created container behind, so retrying callers accumulated Created containers and fixed-name callers hit name conflicts on the next attempt. Refs #1778