Change the cleanup policy of a Docker repository
Change the cleanup policy; only the flags given change. The policy deletes the tags that match –name-regex, except the –keep-last newest, those younger than –keep-days and those matching –keep-regex, every –cadence (daily, weekly, biweekly, monthly, quarterly).
This does not turn the policy on or off; rp docker cleanup enable does.
rp docker cleanup policy <repo> [flags]
Options
--cadence string How often the policy runs
--keep-days int32 Keep tags younger than N days (7 to 90)
--keep-last int32 Keep the newest N tags (1 to 100)
--keep-regex string Never delete the tags that match this regular expression
--name-regex string Delete only the tags that match this regular expression
Options inherited from parent commands
--api-url string Panel API URL of the profile, overrides the stored value
--ca-file string PEM file with extra trusted CA certificates
--debug Print debug output with secrets redacted
--hostname string Repsy host to use instead of the current profile
--insecure Do not verify TLS certificates (unsafe; plain http is chosen with the URL, not with this flag)
--insecure-storage Keep credentials in a plain 0600 file instead of the OS keyring (unsafe; a warning is printed once per command)
--jq string Filter JSON output with a jq expression (implies --output json)
--no-color Disable colored output
--no-input Never prompt; fail when input is needed
--output table|json|yaml Output format: table, json or yaml (default table; json when --jq is given)
--owner string Owner segment of Cloud protocol URLs; --owner= means none
--registry-url string Protocol host URL of the profile, overrides the stored value
--type os|cloud Product of the host, overrides detection
--web-url string Panel UI URL of the profile (where /cli/auth lives), overrides the stored value
--yes Answer yes to confirmation prompts
See also
- rp docker cleanup - Clean up old and unused images of a Docker repository
Found a problem with this page?
Report a problem