package volume

import "github.com/docker/cli/cli/command/volume"

Index

Functions

func NewPruneCommand

func NewPruneCommand(dockerCli command.Cli) *cobra.Command

NewPruneCommand returns a new cobra prune command for volumes

func NewVolumeCommand

func NewVolumeCommand(dockerCli command.Cli) *cobra.Command

NewVolumeCommand returns a cobra command for `volume` subcommands

func RunPrune

func RunPrune(ctx context.Context, dockerCli command.Cli, _ bool, filter opts.FilterOpt) (uint64, string, error)

RunPrune calls the Volume Prune API This returns the amount of space reclaimed and a detailed output string

Source Files

cmd.go create.go inspect.go list.go prune.go remove.go update.go

Version
v28.0.1+incompatible
Published
Feb 25, 2025
Platform
windows/amd64
Imports
20 packages
Last checked
9 hours ago

Tools for package owners.