Files
floci/src
Hector Ventura 38eb938f22 fix(ecr): follow the registry when deleting the last repository replaces it (#7224)
In memory mode, or with prune-volumes-on-delete, deleting the last repository
removes the backing registry container and the next CreateRepository starts a
new one. Floci running in Docker reached the registry by container name, so
when the new container got a different IP the JVM's cached lookup kept
answering with the old address. Until it expired, DeleteRepository returned
500 and CreateRepository could wait long enough for the SDK to time out and
retry, which then failed with RepositoryAlreadyExistsException.

Use the address Docker reports for the container just started or adopted,
and only fall back to the name when none is known. EcrTest no longer needs to
keep a repository to avoid this.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-11-01 12:45:46 -04:00
..