Skip Menu |
 

This queue is for tickets about the Eixo-Docker CPAN distribution.

Report information
The Basics
Id: 116808
Status: new
Priority: 0/
Queue: Eixo-Docker

People
Owner: Nobody in particular
Requestors: julien.simonet [...] caldera.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Problem on starting a new container.
Date: Tue, 9 Aug 2016 16:47:23 +0200
To: bug-Eixo-Docker [...] rt.cpan.org
From: Julien Simonet <julien.simonet [...] caldera.com>
Download (untitled) / with headers
text/plain 1.7k
Hello, I'm using the Eixo::Docker module to manage some docker containers, but since a docker update, I'm not able to start a new container (the creation succeed). The error message is as follow : Show quoted text
> bless({ > args => [ > 400, > "{\"message\":\"starting container with HostConfig was deprecated > since v1.10 and removed in v1.12\"}", > ], > error => "Bad parameter", > error_details => "Error produced in 'postContainers' api call. Details: > 400 - {\"message\":\"starting container with HostConfig was deprecated > since v1.10 and removed in v1.12\"}", > method => "postContainers", > reason => "ERROR_CODE", > }, "Eixo::Docker::ContainerException") >
I'm creating a new container with a command like : Show quoted text
> $newC = $d->containers->create( > Image => 'image-name', > HostName => 'name', > Name => 'name', > HostConfig => { > Binds => [ > "$destinationDirectory:/var/www/html/" > ], > Memory => 50000000, # 50 Mo > }, > 'Env' => [ > "VIRTUAL_HOST=$name" > ] > ); >
The problem happens after an update of Debian Jessie, which update docker from v1.11.2 to v1.12. I'm using the repository specified in Docker documentation. <https://docs.docker.com/engine/installation/linux/debian/#/debian-jessie-80-64-bit> The deprecated feature is at https://docs.docker.com/engine/deprecated/#/hostconfig-at-api-container-start Regarding the Eixo::Docker sources, the problem seems to be located in Eixo/Docker/Container.pm. <https://metacpan.org/source/ALAMBIKE/Eixo-Docker-1.210/lib/Eixo/Docker/Container.pm#L219> I hope I provided you all needed informations. Regards, -- Julien Simonet


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.