API-Docker
view release on metacpan or search on metacpan
lib/API/Docker.pm view on Meta::CPAN
=item * B<API Modules> - Resource-specific API methods:
=over
=item * L<API::Docker::API::System> - System info, version, ping
=item * L<API::Docker::API::Containers> - Container management
=item * L<API::Docker::API::Images> - Image management
=item * L<API::Docker::API::Networks> - Network management
=item * L<API::Docker::API::Volumes> - Volume management
=item * L<API::Docker::API::Exec> - Exec into containers
=back
=item * B<Entity Classes> - Object wrappers for Docker resources:
=over
=item * L<API::Docker::Container> - Container entity with convenience methods
=item * L<API::Docker::Image> - Image entity
=item * L<API::Docker::Network> - Network entity
=item * L<API::Docker::Volume> - Volume entity
=back
=item * B<HTTP Role> - L<API::Docker::Role::HTTP> - HTTP transport layer
=back
=head2 host
Docker daemon connection URL. Defaults to C<$ENV{DOCKER_HOST}> or
C<unix:///var/run/docker.sock>.
Supported formats:
=over
=item * C<unix:///path/to/socket> - Unix socket (default)
=item * C<tcp://host:port> - TCP connection
=back
=head2 api_version
Docker API version to use (e.g., C<1.41>). If not set, the client will
automatically negotiate the highest API version supported by the daemon.
This attribute is set automatically by L</negotiate_version>.
=head2 tls
Enable TLS for secure connections. Defaults to C<0>. Currently experimental.
=head2 cert_path
Path to TLS certificates. Defaults to C<$ENV{DOCKER_CERT_PATH}>.
=head2 system
Returns L<API::Docker::API::System> instance for system operations like
C<info>, C<version>, C<ping>, and C<events>.
=head2 containers
Returns L<API::Docker::API::Containers> instance for container operations like
C<list>, C<create>, C<start>, C<stop>, and C<remove>.
=head2 images
Returns L<API::Docker::API::Images> instance for image operations like
C<list>, C<pull>, C<push>, and C<remove>.
=head2 networks
Returns L<API::Docker::API::Networks> instance for network operations like
C<list>, C<create>, C<connect>, and C<disconnect>.
=head2 volumes
Returns L<API::Docker::API::Volumes> instance for volume operations like
C<list>, C<create>, and C<remove>.
=head2 exec
Returns L<API::Docker::API::Exec> instance for executing commands in containers.
=head2 negotiate_version
$docker->negotiate_version;
Automatically negotiate the highest API version supported by the Docker daemon.
This is called automatically before the first API request if L</api_version>
is not set.
After negotiation, L</api_version> will contain the negotiated version
(e.g., C<1.41>).
=head1 ENVIRONMENT VARIABLES
=over
=item C<DOCKER_HOST>
Docker daemon connection URL. Used as default for L</host> if not explicitly set.
Examples: C<unix:///var/run/docker.sock>, C<tcp://localhost:2375>
=item C<DOCKER_CERT_PATH>
Path to TLS certificates directory. Used as default for L</cert_path>.
=back
( run in 0.477 second using v1.01-cache-2.11-cpan-995e09ba956 )