mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 14:30:28 -05:00
A cluster's release image is named after the ids of the two images it is made of, so a newer pull of either makes another, and the older one stayed on the Docker daemon for good. Each release image is now labelled with its kind: its release, the names of the two images and what is copied. Once Floci makes a newer image of a kind, it removes the others of that kind, without force, so one a container still uses stays until the next newer one. Another kind (with or without Hive, or other image names) is never touched, and an image made before the label is left as it is. Images of one kind are made one at a time, the two names resolved to ids under that kind's lock, so one made of the older images never comes after the newer one to remove it. A step or a bootstrap holds the image it was given until it ends, as it may have no container of it yet, and a held image is not removed either. A failure to remove one is logged with its exception; the new image is there, so it fails nothing.