mirror of
https://github.com/floci-io/floci.git
synced 2026-11-29 00:21:51 -05:00
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>