diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2020-01-10 10:31:36 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2020-01-17 10:57:34 +0100 |
commit | c881e41b1d4f4722c4dbda6f646e50aa378e2298 (patch) | |
tree | 32b32bf24e6baed14c548c5a9dbeab378dadd08f | |
parent | 716a449699cbb8655f08ec400a878525cac836c7 (diff) | |
download | docker-abuild-c881e41b1d4f4722c4dbda6f646e50aa378e2298.tar.bz2 docker-abuild-c881e41b1d4f4722c4dbda6f646e50aa378e2298.tar.xz |
admin: add cmd to list all volumes
-rwxr-xr-x | dabuild-admin | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dabuild-admin b/dabuild-admin index 86c5da8..fe74182 100755 --- a/dabuild-admin +++ b/dabuild-admin @@ -7,12 +7,17 @@ manage_config() { -v dabuild-config:/mnt/abuild alpine sh } +list_volumes() { + docker volume ls --quiet --filter name="^dabuild" +} + usage() { cat <<- EOF dabuild: version (unknown) Available commands: config: access abuild configuration + volumes: list created dabuild volumes help: this help screen EOF } @@ -20,6 +25,7 @@ usage() { case $cmd in config) manage_config;; + volumes) list_volumes;; help) usage;; *) usage; exit 1;; esac |