SYNOPSIS
my $docker = WWW::Docker->new;
# Create a volume
my $volume = $docker->volumes->create(
Name => 'my-volume',
Driver => 'local',
);
# List volumes
my $volumes = $docker->volumes->list;
# Inspect volume
my $vol = $docker->volumes->inspect('my-volume');
say $vol->Mountpoint;
# Remove volume
$docker->volumes->remove('my-volume');
DESCRIPTION
This module provides methods for managing Docker volumes including creation, listing, inspection, and removal.
Accessed via $docker->volumes.
Reference to WWW::Docker client. Weak reference to avoid circular dependencies.
my $volumes = $volumes->list;
List volumes. Returns ArrayRef of WWW::Docker::Volume objects.
my $volume = $volumes->create(
Name => 'my-volume',
Driver => 'local',
);
Create a volume. Returns WWW::Docker::Volume object.
my $volume = $volumes->inspect('my-volume');
Get detailed information about a volume. Returns WWW::Docker::Volume object.
$volumes->remove('my-volume', force => 1);
Remove a volume. Optional force parameter.
my $result = $volumes->prune;
Delete unused volumes. Returns hashref with VolumesDeleted and SpaceReclaimed.
WWW::Docker - Main Docker client
WWW::Docker::Volume - Volume entity class
7 POD Errors
The following errors were encountered while parsing the POD:
- Around line 46:
Unknown directive: =attr
- Around line 73:
Unknown directive: =method
- Around line 87:
Unknown directive: =method
- Around line 105:
Unknown directive: =method
- Around line 121:
Unknown directive: =method
- Around line 136:
Unknown directive: =method
- Around line 144:
Unknown directive: =seealso