mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 11:32:42 +00:00
26 lines
639 B
TOML
26 lines
639 B
TOML
[metadata]
|
|
name = "docker-volumes"
|
|
description = "List and manage Docker volumes"
|
|
requirements = ["docker", "jq"]
|
|
|
|
[source]
|
|
command = "docker volume ls --format '{{.Name}}\t{{.Driver}}'"
|
|
display = "{split:\t:0} ({split:\t:1})"
|
|
output = "{split:\t:0}"
|
|
|
|
[preview]
|
|
command = "docker volume inspect '{split:\t:0}' | jq -C '.[0]'"
|
|
|
|
[ui]
|
|
layout = "portrait"
|
|
|
|
[actions.remove]
|
|
description = "Remove the selected volume"
|
|
command = "docker volume rm '{split:\t:0}'"
|
|
mode = "execute"
|
|
|
|
[actions.inspect]
|
|
description = "Inspect the selected volume in a pager"
|
|
command = "docker volume inspect '{split:\t:0}' | jq -C '.[0]' | less -R"
|
|
mode = "execute"
|