Skip to content

Support listing volumes#1959

Open
jelly wants to merge 5 commits intocockpit-project:mainfrom
jelly:list-volumes
Open

Support listing volumes#1959
jelly wants to merge 5 commits intocockpit-project:mainfrom
jelly:list-volumes

Conversation

@jelly
Copy link
Member

@jelly jelly commented Jan 10, 2025

Rought mockup with basic volume listing

image

Let's add a basic listing and then delete support.

As follow up:

  • Show sizes, there is a /system/df endpoint but it needs investigation on why its slow with btrfs graphDriver and other performance concerns
  • Prune unused volumes like images
  • Create volume support in the container page
  • Export volume (download), which begs the question about import support.

Related to: #2342

@jelly jelly added the no-test label Jan 10, 2025
@jelly jelly requested a review from garrett January 10, 2025 17:40
@tomasmatus
Copy link
Member

I like this, thanks! Another idea I have is to show which containers use the volume. Maybe a popover for the text in the "Used by" column?

@jelly
Copy link
Member Author

jelly commented Jan 13, 2025

I like this, thanks! Another idea I have is to show which containers use the volume. Maybe a popover for the text in the "Used by" column?

Right we have this for images!

image

So maybe an expandable makes sense here.

@rare-magma
Copy link
Contributor

@jelly this would be a great addition to cockpit-podman, is there anything left to do before merging this PR? I'd be willing to help with implementing the display of the size of the volumes later on.

@Venefilyn Venefilyn self-requested a review August 27, 2025 13:02
@gp-lnuff
Copy link

Any update on this?

@Venefilyn
Copy link
Member

Venefilyn commented Jan 19, 2026

@jelly wanna rebase?

Let's add a basic listing and then

  • Delete support

  • Showing the size of the volumes

  • Prune volumes

  • Create volume in container

I think we should support these in the same PR. I think the initial work looks good, I'm wondering if we should do anything with volumes without a name, e.g. those created with just podman volume create as-is. It creates a large hash as the name and mount, but can always tackle this after the fact. For now nothing seems off about it

image

This is fully supported by React and removes a "useless" div from the
DOM.
The variable naming is a bit confusing as it is in fact an object.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants