1、Dump Vulnerability Data

docker exec b1e093cde3ab /bin/sh -c  "pg_dump -U postgres -a -t feature -t keyvalue -t namespace -t schema_migrations -t vulnerability -t vulnerability_fixedin_feature" > vulnerability.sql

docker exec b1e093cde3ab  /bin/sh -c "pg_dump -U postgres -c -s" > clear.sql


2、Back Up the Harbor Clair Database

docker exec harbor-db /bin/sh -c  "pg_dump -U postgres -c" > all.sql


3、Update the Harbor Clair Database

docker exec -i harbor-db psql -U postgres < clear.sql  
docker exec -i harbor-db psql -U postgres < vulnerability.sql

GitHub 加速计划 / ha / harbor
23.24 K
4.68 K
下载
Harbor 是一个开源的容器镜像仓库,用于存储和管理 Docker 镜像和其他容器镜像。 * 容器镜像仓库、存储和管理 Docker 镜像和其他容器镜像 * 有什么特点:支持多种镜像格式、易于使用、安全性和访问控制
最近提交(Master分支:3 个月前 )
29bd0947 * fix robot deletion event Signed-off-by: wang yan <wangyan@vmware.com> * resolve comments Signed-off-by: wang yan <wangyan@vmware.com> --------- Signed-off-by: wang yan <wangyan@vmware.com> 10 天前
05233b07 fix: event-based replication deletion not work when policy with label filter Fix event-based replication deletion on remote registry not triggered when the replication policy configured the label filter. Signed-off-by: chlins <chlins.zhang@gmail.com> 10 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐