MCPcopy Index your code
hub / github.com/docker/cli / newImageRemoveCommand

Function newImageRemoveCommand

cli/command/image/remove.go:55–60  ·  view source on GitHub ↗

newImageRemoveCommand is a sub-command under `image` (`docker image rm`)

(dockerCli command.Cli)

Source from the content-addressed store, hash-verified

53
54// newImageRemoveCommand is a sub-command under `image` (`docker image rm`)
55func newImageRemoveCommand(dockerCli command.Cli) *cobra.Command {
56 cmd := *newRemoveCommand(dockerCli)
57 cmd.Aliases = []string{"rmi", "remove"}
58 cmd.Use = "rm [OPTIONS] IMAGE [IMAGE...]"
59 return &cmd
60}
61
62func runRemove(ctx context.Context, dockerCLI command.Cli, opts removeOptions, images []string) error {
63 apiClient := dockerCLI.Client()

Callers 2

newImageCommandFunction · 0.85

Calls 1

newRemoveCommandFunction · 0.70

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…