NAME

Podman::Images - Manage images.

SYNOPSIS

# List local stored images sorted by Id
my $images = Podman::Images->new->list->sort(sub { $a->inspect->{Id} cmp $b->inspect->{Id} } );
say $_->name for $images->each;

# Prune unused images
Podman::Images->prune;

DESCRIPTION

Inheritance

Podman::Images
    isa Podman::Client

Podman::Images lists images and prunes unused ones.

ATTRIBUTES

Podman::Images implements following attributes.

names_only

If true, list returns Mojo::Collection of image names, defaults to false.

METHODS

Podman::System implements following methods, which can be used as object or class methods.

list

my $list = Podman::Images->list(names_only => 1);

Returns a Mojo::Collection of Podman::Image objects or image names only of stored images. See attribute names_only.

Prune

Podman::Images->prune;

Prune all unused stored images.

AUTHORS

    Tobias Schäfer, <tschaefer@blackox.org>

COPYRIGHT AND LICENSE

Copyright (C) 2022-2022, Tobias Schäfer.

This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.