NAME
WWW::Docker::Network - Docker network entity
VERSION
version 0.100
SYNOPSIS
my $docker = WWW::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 WWW::Docker::API::Networks methods.
client
Reference to WWW::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
WWW::Docker::API::Networks - Network API operations
WWW::Docker - Main Docker client
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-www-docker/issues.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <torsten@raudssus.de>
COPYRIGHT AND LICENSE
This software is copyright (c) 2025 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.