A tiny Docker CLI plugin to list up only volumes without any label.
- Python
>=3.9
Check out the repository.
cd /path/to/repos
git clone [repo]
Install the dependencies.
cd /path/to/repos/[repo]
python3 -m pip install -r requirements.txt
Create the CLI plugin directory if not present.
mkdir ~/.docker/cli-plugins
Create a symbolic link to the script.
cd ~/.docker/cli-plugins
ln -s /path/to/repos/[repo]/docker-volumesunlabeled.py docker-volumesunlabeled
If you name the link docker-volumesunlabeled
, the subcommand will be volumesunlabeled
. The name can be changed.
If installed successfully, the subcommand volumesunlabeled
will shows up in the subcommands list with docker
.
docker 2>&1 | grep volumesunlabeled
volumesunlabeled*List up Docker volumes without any label. (Goto Hayato, 0.1.0)
docker volumesunlabeled