Net::Docker - Interface to the Docker API
use Net::Docker; my $api = Net::Docker->new; my $id = $api->create( Image => 'ubuntu', Cmd => ['/bin/bash'], AttachStdin => \1, OpenStdin => \1, Name => 'my-container', ); say $id; $api->start($id); my $cv = $api->streaming_logs($id, stream => 1, logs => 1, stdin => 1, stderr => 1, stdout => 1, in_fh => \*STDIN, out_fh => \*STDOUT, ); $cv->recv;
Perl module for using the Docker Remote API.
Peter Stuifzand <peter@stuifzand.eu>
Copyright 2013 - Peter Stuifzand
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
http://docker.io
To install Net::Docker, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Docker
CPAN shell
perl -MCPAN -e shell install Net::Docker
For more information on module installation, please visit the detailed CPAN module installation guide.