[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How safe is "oadm prune"?



It cleans up the registry and the image streams.  The node manages
deleting images from docker already.

> On Jan 2, 2016, at 8:56 AM, v <vekt0r7 gmx net> wrote:
>
> Hello,
>
> will "oadm prune" also delete images from the nodes (in /var/lib/docker/) or will it only clean up the registry (NFS share)?
>
> Regards,
> v
>
>> Am 2015-12-30 um 18:17 schrieb Clayton Coleman:
>> Prune never deletes images that are referenced by pods, deployments,
>> the latest tag in an image stream, or are newer than a certain date
>> (parameterized).  If you're not comfortable, take a backup prior to
>> pruning.
>>
>> Here's the core description of the algorithm:
>> https://github.com/openshift/origin/blob/master/pkg/image/prune/imagepruner.go#L195
>> (which I believe is in the docs).
>>
>> If you'd like more info printed about what is going to be removed,
>> please open an issue on GitHub.
>>
>>> On Dec 30, 2015, at 6:13 AM, v <vekt0r7 gmx net> wrote:
>>>
>>> Hello,
>>>
>>> we need to clean up our Deployments/Builds/Images but I am very hesistant of using "oadm prune images" because there doesn't seem to be any way to see which images exactly are going to get deleted. The command only shows the sha256 checksums of the layers that are going to get deleted which is not very helpful for me.
>>>
>>> Can I be sure that "oadm prune" will never delete anything that is actually being used at the moment and that it will never interfere with any running pods in an unwanted way?
>>>
>>> Still using Openshift v1.0.6
>>>
>>> Regards,
>>> v
>>>
>>> _______________________________________________
>>> users mailing list
>>> users lists openshift redhat com
>>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]