NAME

Podman::Image - Control image.

SYNOPSIS

# Pull image from iregistry
my $Image = Podman::Image->Pull('docker.io/library/hello-world');

# Build new image from File
my $Image = Podman::Image->Build('localhost/goodbye', '/tmp/Dockerfile');

# Retrieve advanced image information
my $info = $Image->Inspect();

# Remove local stored image
$Image->Remove();

DESCRIPTION

Podman::Image provides functionality to control an image.

ATTRIBUTES

Name

my $Image = Podman::Image->new( Name => 'localhost/goodbye' );

Unique image name or other identifier.

Client

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

Optional Podman::Client object.

METHODS

Build

my $Image = Podman::Image->Build('localhost/goodbye', '/tmp/Dockerfile');

Build a named image by a given build file and store it. All further content in the build file directory is used as well to create the new image.

Inspect

my $Info = $Image->Inspect();

Return advanced image information.

Pull

my $Image = Podman::Image->Pull('docker.io/library/hello-world');

Pull named image from registry into store.

Remove

$Image->Remove();

Remove image from store.

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.