From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

#
# (c) Jan Gehring <jan.gehring@gmail.com>
#
use v5.12.5;
our $VERSION = '1.15.0.2'; # TRIAL VERSION
sub execute {
my ( $class, $arg1 ) = @_;
my @domains;
Rex::Logger::debug("Getting docker images");
my @images =
i_run "docker images --format \"{{.Repository}}:{{.Tag}}:{{.ID}}\"",
fail_ok => 1;
my @ret = ();
for my $line (@images) {
my ( $image, $tag, $id ) = split( /:/, $line );
push(
@ret,
{
tag => $tag,
name => $image,
id => $id,
}
);
}
return \@ret;
}
1;