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.

Reference to WWW::Docker client.

Network ID.

Network name.

Network driver (e.g., bridge, overlay).

my $updated = $network->inspect;

Get fresh network information.

$network->remove;

Remove the network.

$network->connect(Container => $container_id);

Connect a container to this network.

$network->disconnect(Container => $container_id, Force => 1);

Disconnect a container from this network.

9 POD Errors

The following errors were encountered while parsing the POD:

Around line 34:

Unknown directive: =attr

Around line 42:

Unknown directive: =attr

Around line 50:

Unknown directive: =attr

Around line 60:

Unknown directive: =attr

Around line 82:

Unknown directive: =method

Around line 95:

Unknown directive: =method

Around line 108:

Unknown directive: =method

Around line 121:

Unknown directive: =method

Around line 129:

Unknown directive: =seealso