Docker扫描工具之Anchore


安装前置条件

依赖 版本及安装命令
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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM