Skip to content

Support nerdctl system df command #3942

Closed

Description

@maxsxu

What is the problem you're trying to solve

It would be great helpful if we can support nerdctl system df command to show the containerd filesystem usage, just like docker system df can show docker filesystem usage.

Describe the solution you'd like

When run nerdctl system df command, it'll show filesystem usage outputs like following:

❯ nerdctl system df
TYPE            TOTAL     ACTIVE    SIZE      RECLAIMABLE
Images          17        1         18.25GB   17.26GB (94%)
Containers      3         3         169.2MB   0B (0%)
Local Volumes   4         3         798.66GB   22.62MB (0%)
Build Cache     44        0         0B        0B

Additional context

No response

Activity

  1. yankay commented on Jun 20, 2025

    @yankay
    Contributor

    To implement this feature, I think we first need to be able to get the SharedSize of an image.

    ref: https://github.com/containerd/nerdctl/blob/main/pkg/cmd/image/list.go#L127

  2. papidb commented on Jul 9, 2026

    @papidb
    Contributor

    Hi @AkihiroSuda @yankay can I work on adding the sharedSize of an image?

  3. AkihiroSuda commented on Jul 20, 2026

    @AkihiroSuda
    Member

    The image size definition has changed in Docker v29

    We have to investigate how the size is computed for docker system df in Docker v29 first

  4. added 3 commits that reference this issue on Aug 7, 2026
    3b7058e
    38b701c
    5f44c03
  5. added 5 commits that reference this issue on Aug 19, 2026
    9f63ef5
    472c30e
    9c583c6
    16033f4
    7da5153
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions