https://github.com/gh640/docker-volumesunlabeled
A tiny Docker CLI plugin to list up only volumes without any label.
https://github.com/gh640/docker-volumesunlabeled
docker docker-cli-plugin python3
Last synced: 3 months ago
JSON representation
A tiny Docker CLI plugin to list up only volumes without any label.
- Host: GitHub
- URL: https://github.com/gh640/docker-volumesunlabeled
- Owner: gh640
- Created: 2021-12-16T13:29:32.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-16T13:34:58.000Z (over 4 years ago)
- Last Synced: 2025-03-04T10:25:33.984Z (over 1 year ago)
- Topics: docker, docker-cli-plugin, python3
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker CLI plugin `volumesunlabeled`
A tiny Docker CLI plugin to list up only volumes without any label.
## Prerequisites
- Python `>=3.9`
## Installation
Check out the repository.
```sh
cd /path/to/repos
git clone [repo]
```
Install the dependencies.
```sh
cd /path/to/repos/[repo]
python3 -m pip install -r requirements.txt
```
Create the CLI plugin directory if not present.
```sh
mkdir ~/.docker/cli-plugins
```
Create a symbolic link to the script.
```sh
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`.
```sh
docker 2>&1 | grep volumesunlabeled
volumesunlabeled*List up Docker volumes without any label. (Goto Hayato, 0.1.0)
```
## Usage
```bash
docker volumesunlabeled
```
## Similar plugins
- [GitHub - gh640/docker-volumerename: Docker CLI plugin to rename volumes.](https://github.com/gh640/docker-volumerename)