NAME
API::Docker::Network - Docker network entity
VERSION
version 0.001
SYNOPSIS
my $docker = API::Docker->new;
my $networks = $docker->networks->list;
my $network = $networks->[0];
say $network->Name;
say $network->Driver;
$network->connect(Container => $container_id);
$network->disconnect(Container => $container_id);
$network->remove;
DESCRIPTION
This class represents a Docker network. Instances are returned by API::Docker::API::Networks methods.
client
Reference to API::Docker client.
Id
Network ID.
Name
Network name.
Driver
Network driver (e.g., bridge, overlay).
inspect
my $updated = $network->inspect;
Get fresh network information.
remove
$network->remove;
Remove the network.
connect
$network->connect(Container => $container_id);
Connect a container to this network.
disconnect
$network->disconnect(Container => $container_id, Force => 1);
Disconnect a container from this network.
SEE ALSO
API::Docker::API::Networks - Network API operations
API::Docker - Main Docker client
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-api-docker/issues.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <getty@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> 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.