Commit c881e41b authored by Carlo Landmeter's avatar Carlo Landmeter
Browse files

admin: add cmd to list all volumes

parent 716a4496
...@@ -7,12 +7,17 @@ manage_config() { ...@@ -7,12 +7,17 @@ manage_config() {
-v dabuild-config:/mnt/abuild alpine sh -v dabuild-config:/mnt/abuild alpine sh
} }
list_volumes() {
docker volume ls --quiet --filter name="^dabuild"
}
usage() { usage() {
cat <<- EOF cat <<- EOF
dabuild: version (unknown) dabuild: version (unknown)
Available commands: Available commands:
config: access abuild configuration config: access abuild configuration
volumes: list created dabuild volumes
help: this help screen help: this help screen
EOF EOF
} }
...@@ -20,6 +25,7 @@ usage() { ...@@ -20,6 +25,7 @@ usage() {
case $cmd in case $cmd in
config) manage_config;; config) manage_config;;
volumes) list_volumes;;
help) usage;; help) usage;;
*) usage; exit 1;; *) usage; exit 1;;
esac esac
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment