pub struct ImagePrune<'a> {
pub filters: Option<&'a str>,
}
Available on crate feature
v5
only.Fields§
§filters: Option<&'a str>
filters to apply to image pruning, encoded as JSON (map[string][]string). Available filters:
dangling=<boolean>
When set totrue
(or1
), prune only unused and untagged images. When set tofalse
(or0
), all unused images are pruned.until=<string>
Prune images created before this timestamp. The<timestamp>
can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g.10m
,1h30m
) computed relative to the daemon machine’s time.label
(label=<key>
,label=<key>=<value>
,label!=<key>
, orlabel!=<key>=<value>
) Prune images with (or without, in caselabel!=...
is used) the specified labels.
Trait Implementations§
Source§impl<'a> Debug for ImagePrune<'a>
impl<'a> Debug for ImagePrune<'a>
Source§impl<'a> Default for ImagePrune<'a>
impl<'a> Default for ImagePrune<'a>
Source§fn default() -> ImagePrune<'a>
fn default() -> ImagePrune<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ImagePrune<'a>
impl<'a> RefUnwindSafe for ImagePrune<'a>
impl<'a> Send for ImagePrune<'a>
impl<'a> Sync for ImagePrune<'a>
impl<'a> Unpin for ImagePrune<'a>
impl<'a> UnwindSafe for ImagePrune<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more