bash - 如何自动从 Harbor 中删除 Docker 镜像?

标签 bash docker curl docker-registry harbor

我正在使用 harbor 来存储 docker 镜像。

我想自动从docker中删除1个月前的镜像。

有你知道的方法吗?

最佳答案

1.9.0版本带有标签保留功能。您可以设置规则并保留您想要保留的标签。 https://goharbor.io/docs/2.0.0/working-with-projects/working-with-images/create-tag-retention-rules/#how-tag-retention-rules-work

关于bash - 如何自动从 Harbor 中删除 Docker 镜像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59077102/

相关文章:

linux - 使用空格和路径自定义 bash 补全

Python 请求 API 调用不起作用

php - 如何通过需要 POST 数据的 PHP 抓取网站?

bash - 使用 bash 从第二个字段开始的行中提取字段 for look

linux - 在 sed 命令中使用 "{}"和 "\;"

bash - 从输出中删除颜色

docker - 无法访问 DOCKER 容器

linux - xdebug phpstorm docker linux

maven - 在 Dockerfile 中包含一个 Maven Artifact

rest - 使用Restful API curl