mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
* fix(ecr): advertise published host port when adopting registry container When Floci runs inside Docker and adopts an already-running ECR registry container, adopt()'s endpoint resolves to the container IP and internal port 5000. That port was advertised in getRepositoryUri/getProxyEndpoint, but those URIs are consumed by the host-side Docker daemon, so docker login against the advertised endpoint failed. Read the published host binding when adopting and fall back to the configured port with a warning when no binding exists. * refactor(ecr): read published binding from adopt's existing inspect Applies the review suggestion: adopt() already inspects the container, so carry the published host bindings in ContainerInfo instead of re-inspecting via a separate publishedHostPort lookup. Removes the extra Docker round-trip on every adoption.