Podman::Images - Manage images.
# 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;
Podman::Images isa Podman::Client
Podman::Images lists images and prunes unused ones.
Podman::Images implements following attributes.
If true, list returns Mojo::Collection of image names, defaults to false.
true
list
false
Podman::System implements following methods, which can be used as object or class methods.
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.
names_only
Podman::Images->prune;
Prune all unused stored images.
Tobias Schäfer, <tschaefer@blackox.org>
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.
To install Podman, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Podman
CPAN shell
perl -MCPAN -e shell install Podman
For more information on module installation, please visit the detailed CPAN module installation guide.