Skip to main content
Version: v3.8.0

Image and disk pruning

Disk space on edge hardware is limited. Edgelet supports scheduled and on-demand pruning of unused images and orphaned volume data.

Prune from the orchestrator

Trigger an immediate image prune on one Edgelet node:

potctl prune agent zebra-1

See potctl prune agent for flags.

Scheduled prune via AgentConfig

Set pruningFrequency in AgentConfig (hours between cycles). v3.8 uses pruningFrequency, not legacy dockerPruningFrequency.

spec:
pruningFrequency: 24
availableDiskThreshold: 20
watchdogEnabled: true

The Edgelet pruning manager runs containers → volumes → images on the embedded engine. See Configuration updates.

On-device prune

When SSH'd to the node:

edgelet system prune images
edgelet system prune volumes
edgelet system prune all

Orphaned VOLUME data under /var/lib/edgelet/volumes/data/ is not removed on microservice delete. Use volume prune or see Edgelet volumes.

See also

Group 3See anything wrong with the document? Help us improve it!