NAME
WWW::Docker::API::Volumes - Docker Engine Volumes API
VERSION
version 0.100
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.
client
Reference to WWW::Docker client. Weak reference to avoid circular dependencies.
list
my $volumes = $volumes->list;
List volumes. Returns ArrayRef of WWW::Docker::Volume objects.
create
my $volume = $volumes->create(
Name => 'my-volume',
Driver => 'local',
);
Create a volume. Returns WWW::Docker::Volume object.
inspect
my $volume = $volumes->inspect('my-volume');
Get detailed information about a volume. Returns WWW::Docker::Volume object.
remove
$volumes->remove('my-volume', force => 1);
Remove a volume. Optional force parameter.
prune
my $result = $volumes->prune;
Delete unused volumes. Returns hashref with VolumesDeleted and SpaceReclaimed.
SEE ALSO
WWW::Docker - Main Docker client
WWW::Docker::Volume - Volume entity class
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.