Skip to content

Allow to "discard unpacked layers" when using ctr #7125

@champtar

Description

@champtar

What is the problem you're trying to solve

To reduce disk usage, I'm trying to use discard_unpacked_layers.
Today discard_unpacked_layers config is specific to the CRI interface, but I'm using ctr images import --no-unpack

Describe the solution you'd like

Have a way to discard layers once unpacked, even when using ctr, and even when using --no-unpack (discard once unpacked / after first use)
Preferably a new containerd config, but a new ctr flag would do.

Additional context

Was first opened as a bug #7119 #7120

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