Hello,
I try make little script to build and start my PHP docker, for the moment my script is pretty simple but he stop working when I want enable network.
My script:
use Data::Dumper;
use Eixo::Docker::Api;
# getAll
my $lista = $a->containers->getAll();
my $c = $a->containers->create(
Hostname => 'test',
Cmd => ["nc", "-l", '0.0.0.0', '80'],
Image => "trafex/alpine-nginx-php7",
Name => "php7",
NetworkDisabled => "False",
ExposedPorts => {
"80/tcp" => {}
},
);
my $container = $a->containers->getByName("php7");
$container->start(
"PortBinding" => {
"80/tcp" => [{"HostIp" => "0.0.0.0", "HostPort" => "8080" }]
},
);
I have :
Eixo::Docker::ContainerException=HASH(0x3044888)
Could you help me please?
Many thanks by advance,
Simon.
Hello,
I try make little script to build and start my PHP docker, for the moment my script is pretty simple but he stop working when I want enable network.
My script:
I have :
Eixo::Docker::ContainerException=HASH(0x3044888)Could you help me please?
Many thanks by advance,
Simon.