Daniel Belenky created OVIRT-1535:
-------------------------------------
Summary: Docker cleanup fails to clean non-named/non-tagged images
Key: OVIRT-1535
URL: https://ovirt-jira.atlassian.net/browse/OVIRT-1535
Project: oVirt - virtualization made easy
Issue Type: New Feature
Reporter: Daniel Belenky
Assignee: infra
Priority: Highest
In a case where a docker image is being built, it generates layers which are
unnamed and untagged. This causes the cleanup script to fail when trying to
clean them.
An example of such a failure can be found
[here|http://jenkins.ovirt.org/job/ovirt-containers_master_check-patch-el7-x86_64/55/]
The quick fix would be to ignore those trailing layers or alternatively detect
them and remove them by image id. Imo, the second option is safer because every
'trailing layer' like that may get large (1GB+).
The long-term solution would be to implement some sort of garbage collector for
orphaned layers.
I've found an open ticket [1] with some optional solutions, still need to see
if they fit for our use case. If not, maybe consider implementing something
similar.
[1] [github|https://github.com/docker/docker-registry/issues/223]
--
This message was sent by Atlassian JIRA
(v1000.1112.0#100055)
_______________________________________________
Infra mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/infra