API-Docker
view release on metacpan or search on metacpan
lib/API/Docker/Role/Entity/Container.pm view on Meta::CPAN
Delegates to L<API::Docker::API::Containers/changes>, which documents what the
three C<Kind> numbers mean.
=head2 export
my $tar = $container->export;
The container's filesystem as raw tar bytes.
=head2 resize
$container->resize(h => 40, w => 120);
Resize the container's TTY.
=head2 get_archive
my $tar = $container->get_archive(path => '/etc/hostname');
Read a path out of the container as raw tar bytes.
=head2 put_archive
$container->put_archive($tar, path => '/opt/app');
Unpack a tar archive into a directory in the container.
=head2 stat_archive
my $stat = $container->stat_archive(path => '/etc/hostname');
Stat a path in the container without transferring it.
=head2 is_running
if ($container->is_running) { ... }
True when the container is running. Reads whichever shape it is on: the
status string C<< $summary->state >> from C<list>, and
C<< $inspected->state->running >> from C<inspect>.
=head1 SEE ALSO
=over
=item * L<API::Docker::API::Containers> - the operations these forward to
=item * L<API::Docker::Type::ContainerSummary> - the fields C<list> returns
=item * L<API::Docker::Type::ContainerInspectResponse> - the fields
C<inspect> returns
=item * L<API::Docker::Role::Entity> - why the methods live in a role
=back
=head1 SUPPORT
=head2 Issues
Please report bugs and feature requests on GitHub at
L<https://github.com/Getty/p5-api-docker/issues>.
=head1 CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
=head1 AUTHOR
Torsten Raudssus <getty@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> L<https://raudssus.de/>.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
( run in 0.803 second using v1.01-cache-2.11-cpan-364913b4093 )