NAME
WWW::Docker::Image - Docker image entity
VERSION
version 0.100
SYNOPSIS
my $docker = WWW::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 WWW::Docker::API::Images methods.
client
Reference to WWW::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
WWW::Docker::API::Images - Image API operations
WWW::Docker - Main Docker client
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-www-docker/issues.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <torsten@raudssus.de>
COPYRIGHT AND LICENSE
This software is copyright (c) 2025 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.