NAME
API::Docker::Image - Docker image entity
VERSION
version 0.001
SYNOPSIS
my $docker = API::Docker->new;
my $images = $docker->images->list;
my $image = $images->[0];
say $image->Id;
say join ', ', @{$image->RepoTags};
say $image->Size;
$image->tag(repo => 'myrepo/app', tag => 'v1');
$image->remove;
DESCRIPTION
This class represents a Docker image. Instances are returned by API::Docker::API::Images methods.
client
Reference to API::Docker client.
Id
Image ID (usually sha256:... hash).
RepoTags
ArrayRef of repository tags (e.g., ["nginx:latest", "nginx:1.21"]).
Size
Image size in bytes.
inspect
my $updated = $image->inspect;
Get fresh image information.
history
my $history = $image->history;
Get image layer history.
tag
$image->tag(repo => 'myrepo/app', tag => 'v1');
Tag the image.
remove
$image->remove(force => 1);
Remove the image.
SEE ALSO
API::Docker::API::Images - Image API operations
API::Docker - Main Docker client
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-api-docker/issues.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <getty@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.