NAME

Podman::Containers - Manage containers.

SYNOPSIS

# Create and use containers controller
my $Containers = Podman::Containers->new();
$Containers->list();

# List available containers
my $List = Podman::Containers->List();

# Prune stopped containers
Podman::Containers->Prune;

DESCRIPTION

Podman::Images lists all available containers and prunes stopped ones.

ATTRIBUTES

Client

my $Client = Podman::Client->new(
    Connection => 'http+unix:///var/cache/podman.sock' );
my $Images = Podman::Images->new( Client => $Client );

Optional Podman::Client object.

METHODS

List

my $List = Podman::Containers->List();

Returns a list of Podman::Container available.

Prune

Podman::Containers->->Prune();

Prune all stopped containers.

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.