A method includes: creating, by a computing device, a container image group; adding, by the computing device, container images which share file characteristics into the container image group; defining, by the computing device, a homogeneity of the container image group; and applying, by the computing device, a life cycle action on image layers of the container images within the container image group based on the homogeneity of the container image group.