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