首页 > 其他 > 详细

Docker扫描工具之Anchore

时间:2020-05-05 12:33:38      阅读:138      评论:0      收藏:0      [点我收藏+]

安装前置条件

依赖 版本及安装命令
CentOS版本 CentOS 7
Docker版本 >1.10
epel-release yum install epel-release
rpm-python yum install rpm-python
dpkg yum install dpkg
python-pip yum install python-pip

安装Anchore

# pip install anchore
技术分享图片

确认版本

# anchore --version

初期化Anchore的Database

# anchore feeds sync
技术分享图片

镜像准备

# docker images
技术分享图片

对镜像进行分析

# anchore analyze --image docker.io/centos:latest --imagetype base
技术分享图片

生成报告

# anchore gate --image docker.io/centos:latest
技术分享图片

确认CVE

# anchore query --image docker.io/centos:latest cve-scan all
技术分享图片

参考
https://blog.csdn.net/liumiaocn/article/details/76732894

Docker扫描工具之Anchore

原文:https://www.cnblogs.com/lucifer000/p/12830086.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!