Skip to content

[Task Type] Docker | Delete unused manifests and images

Olivier Clavel edited this page Oct 24, 2022 · 3 revisions

Related settings description

Name of task type (in GUI): Docker - Delete unused manifests and images
typeId: repository.docker.gc
taskProperties:
  repositoryName:
    type: string
    description: Name of repo to clean (* for all)
  deployOffset:
    type: string
    description: Deploy offset in hours (manifests and images deployed within this period before the task starts will not be deleted)

# Example usage (with manual schedule type)
```yaml
nexus_scheduled_tasks:
  - name: Remove unused docker manifests and images
    typeId: repository.docker.gc
    taskProperties:
      repositoryName: *
      deployOffset: "6"
    task_alert_email: alert@somewhere.info
    schedule_type: manual