The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

#
# (c) Jan Gehring <jan.gehring@gmail.com>
#
# vim: set ts=2 sw=2 tw=0:
# vim: set expandtab:
use strict;
our $VERSION = '1.3.1_1'; # TRIAL VERSION
sub execute {
my ( $class, %opt ) = @_;
my $bind = defined $opt{bind} ? $opt{bind} : '0.0.0.0';
my $host = defined $opt{host} ? $opt{host} : 'unix:///var/run/docker.sock';
Rex::Logger::debug("starting docker daemon");
i_run "docker -d -H $host -ip $bind";
if ( $? != 0 ) {
die("Error starting docker daemon");
}
}
1;