Skip to content

Rename docker volume #31154

@ghost

Description

I miss a command which I can use to rename a volume.

Once I have created a lot of modules and forget to name the volumes at the start, it gets really difficult to identify which volume contains what.

A command like
docker volume mv 27722c3065e2f074bc7f29963fe62f73669cb369617482596e222f9991daee57 my-nice-volume-name
would be nice.
If that is not possible (because the id is used in a definition), it would be nice to have the ability to add a short comment:
docker volume set-comment 27722c3065e2f074bc7f29963fe62f73669cb369617482596e222f9991daee57 "This is the volume /var/logs/ for my creat app"
This comment should be visible in the list docker volume ls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/volumesVolumeskind/featureFunctionality or other elements that the project doesn't currently have. Features are new and shiny

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions