如何一键扫描本机docker镜像漏洞?

安装trivy

yay -S trivy-bin

命令如下:

alias imcve='trivy --skip-update -f json $(docker images --format "{{.Repository}}:{{.Tag}}" | fzf)'

使用方式:

imcve

猜你喜欢

转载自www.cnblogs.com/futuretea/p/11996576.html
今日推荐