Skip to main content
Get the currently configured registry expiration policy. registry policy get reads the image expiration policy configured for your workspace’s Namespace Container Registry. With no flags, it returns the default policy that applies to every repository without a repository-specific override. Pass --repository to instead read the policy for that specific repository.

Usage

Example

Output
Get the policy for a specific repository:
Output

Options

—repository <repository>

Get the policy for a specific repository instead of the default policy. If not specified, returns the default policy that applies to all repositories without a repository-specific override.

—output, -o <format>

Output format. One of table or json. Default is table.
Last modified on August 20, 2026