mirror of
https://github.com/containers/podman.git
synced 2025-10-18 03:33:32 +08:00

This command will destroy all data created via podman. It will remove containers, images, volumes, pods. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
32 lines
594 B
Go
32 lines
594 B
Go
package main
|
|
|
|
import (
|
|
"github.com/containers/libpod/cmd/podman/cliconfig"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
systemDescription = "Manage podman"
|
|
|
|
systemCommand = cliconfig.PodmanCommand{
|
|
Command: &cobra.Command{
|
|
Use: "system",
|
|
Short: "Manage podman",
|
|
Long: systemDescription,
|
|
RunE: commandRunE(),
|
|
},
|
|
}
|
|
)
|
|
|
|
var systemCommands = []*cobra.Command{
|
|
_systemResetCommand,
|
|
_infoCommand,
|
|
_pruneSystemCommand,
|
|
}
|
|
|
|
func init() {
|
|
systemCommand.AddCommand(systemCommands...)
|
|
systemCommand.AddCommand(getSystemSubCommands()...)
|
|
systemCommand.SetUsageTemplate(UsageTemplate())
|
|
}
|