Docker CLI plugin to rename volumes.
- Docker for Mac
- Docker >= 1.19.3
- Python >= 3.8
mkdir ~/.docker/cli-plugins
cd ~/.docker/cli-plugins
curl -o docker-volumerename https://raw.githubusercontent.com/gh640/docker-volumerename/main/docker-volumerename.py
chmod u+x docker-volumerename
You can check if it's successfully installed:
docker 2>&1 | grep volumerename
volumerename*Rename a volume (Goto Hayato, 0.1.0)
docker volumerename [-h] [--dyr-run] volume_from volume_to
See detail with docker volumerename --help
.
- Rename docker volume · Issue #31154 · moby/moby · GitHub
- CLI Plugins Design · Issue #1534 · docker/cli · GitHub
- cli-plugins: add concept of experimental plugin, only enabled in experimental mode by tiborvass · Pull Request #1898 · docker/cli · GitHub
- Basic framework for writing and running CLI plugins by ijc · Pull Request #1564 · docker/cli · GitHub