Command Line Tools
wheels deploy prune all
Prune old containers and old images on every host, keeping the most recent stopped containers per host (--keep=<n>, default 5).
Synopsis
Section titled “Synopsis”wheels deploy prune all [--keep=<n>] [--destination=<name>] [--dry-run]| Flag | Description |
|---|---|
--keep=<n> | How many old (stopped) containers to keep per host. Default 5. There is no deploy.yml equivalent — Kamal’s retain_containers: is rejected by the config validator. |
--destination=<name> | Overlay destination config. |
--dry-run | Print the commands without executing. |
Behavior
Section titled “Behavior”Runs prune containers then prune images on every host. The current live container and everything in the retention window survives.
Example
Section titled “Example”wheels deploy prune all