Eixo::Distribution - Suite of Perl modules to interact with Docker::Distribution
use Eixo::Distribution::Api;
my $a = Eixo::Distribution::Api->new('http://127.0.0.1:5000');
# list images
my ($image) = $a->images->list;
# get images tag
my @tags = $a->images->tags($image);
# load an image
my $i = $a->images->get(name=>$image, reference=>"latest");
# see total size (in bytes)
$i->manifest->totalSize;
# image manifest
$i->manifest;
# delete the blobs and manifest of an image
$i->delete;
# Important!! In the actual revision of the Docker::Distribution, the blobs and manifest are only marked
# to be erased. To really delete them, it is necessary to run an administrative task (cf. garbage-collect)
The purpose of this library is to provide a set of modules to interact in a simple, but powerful way, with the Docker remote api
Currently this module has the following dependencies:
Eixo::Base >= 1.200,
Eixo::Rest >= 1.020,
To support https we use LWP::Protocol::https module that needs ssl dev libraries installed in system.
In ubuntu/debian:
apt-get install libssl-dev
JSON >= 2.50,
Net::HTTP >= 6.06,
HTTP::Server::Simple::CGI (for testing purpose)
Francisco Maseda, <frmadem@gmail.com>
Javier Gomez, <alambike@gmail.com>
Copyright (C) 2016, Francisco Maseda
Copyright (C) 2016, Javier Gómez
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.