virtualisation.docker.autoPrune.enable

NixOS option

Whether to periodically prune Docker resources. If enabled, a systemd timer will run docker system prune -f as specified by the dates option. NOTE: by default this does not prune volumes. Anonymous volumes can be pruned by passing “–volumes” to autoPrune.flags. To prune all volumes (not just anonymous ones) autoPrune.allVolumes.enable must be used. See upstream documentation for further information.

type: boolean
Default
false
declared in: nixos/modules/virtualisation/docker.nixView source on NixOS/nixpkgs →