harbor-scanner
时间: 2023-10-31 10:55:31 浏览: 58
Harbor-Scanner是一个用于适配Harbor镜像仓库的漏洞扫描工具。它定义了一系列标准的数据结构,如扫描器的元信息、扫描结果和扫描请求等。如果我们想要将自己的漏洞扫描工具与Harbor适配,就需要按照这些规范来编写适配器(adapter)。
关于Harbor-Scanner的部署和使用,你可以参考一些相关的教程和文档。其中一些教程包括完整的Harbor安装配置过程、Harbor镜像仓库的部署、以及Harbor-Scanner的搭建和前期准备。这些教程可以帮助你了解如何通过Harbor-Scanner进行镜像扫描,以及如何使用web访问Harbor和拉取镜像等操作。
具体部署Harbor-Scanner的步骤包括下载离线安装包并解压,然后进入项目目录进行配置和使用。你可以通过以下命令下载Harbor-Scanner的离线安装包并解压:
```
wget https://github.com/dosec-cn/harbor-scanner/releases/download/v1.2/dosec-scanner.tgz
tar zxf dosec-scanner.tgz
cd dosec-scanner
```
通过按照这些步骤进行部署,你就可以使用Harbor-Scanner进行漏洞扫描了。
相关问题
[root@region-master1 ~]# kubectl delete pod --all --grace-period=0 --force -n test2-ns2 Warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely. pod "harbor-operator-harbor-sample-harbor-database-0" force deleted pod "harbor-operator-harbor-sample-harbor-redis-0" force deleted pod "harbor-operator-harbor-sample-harbor-trivy-0" force deleted [root@region-master1 ~]# kubectl get pod -n test2-ns2 NAME READY STATUS RESTARTS AGE harbor-operator-harbor-sample-harbor-database-0 1/1 Running 0 7s harbor-operator-harbor-sample-harbor-redis-0 1/1 Running 0 7s harbor-operator-harbor-sample-harbor-trivy-0 0/1 Running 0 7s
您好,看到您的命令输出,`--grace-period=0 --force`参数将强制删除了`test2-ns2`命名空间中的所有pod。但是,您可以使用以下命令来确认pod是否已被删除:
```
kubectl get pod -n test2-ns2
```
如果输出为空,则表示该命名空间中已经没有任何pod了。但是,如果您看到pod的状态仍为Running,请耐心等待几秒钟,直到它们被完全删除。
[root@region-master1 ~]# kubectl get rc -n test2-ns2 No resources found in test2-ns2 namespace. [root@region-master1 ~]# kubectl get rs -n test2-ns2 No resources found in test2-ns2 namespace. [root@region-master1 ~]# kubectl delete pod -n test2-ns2 --all pod "harbor-operator-harbor-sample-harbor-database-0" deleted pod "harbor-operator-harbor-sample-harbor-redis-0" deleted pod "harbor-operator-harbor-sample-harbor-trivy-0" deleted [root@region-master1 ~]# kubectl get deployments.apps -n test2 No resources found in test2 namespace. [root@region-master1 ~]# kubectl get deployments.apps -n test2-ns2 No resources found in test2-ns2 namespace. [root@region-master1 ~]# kubectl get deployments -n test2-ns2 No resources found in test2-ns2 namespace. [root@region-master1 ~]# kubectl get pod -n test2-ns2 NAME READY STATUS RESTARTS AGE harbor-operator-harbor-sample-harbor-database-0 1/1 Running 0 3m6s harbor-operator-harbor-sample-harbor-redis-0 1/1 Running 0 3m6s harbor-operator-harbor-sample-harbor-trivy-0 1/1 Running 0 2m36s
您好,看到您的命令输出,似乎您已经成功删除了`test2-ns2`命名空间中的所有pod。但是,您可以尝试使用以下命令来确认该命名空间中是否还有其他资源:
```
kubectl get all -n test2-ns2
```
该命令将显示该命名空间中的所有资源,包括pod、replication controllers、replica sets、deployments、services等等。如果输出为空,则表示该命名空间中已经没有任何资源了。
相关推荐
![tgz](https://img-home.csdnimg.cn/images/20210720083646.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)