我有一个目录,里面有一堆容器上的docker save
生成的大量tarball。有没有办法将这个目录传递给Anchore内联扫描工具,让它扫描该目录中所有保存的容器?
发布于 2021-06-07 09:03:41
您可以添加-v标志,后跟包含tarball的目录。下面是一个来自Anchore blog的示例
cd example1/
docker build -t example1:latest .
cd ../example2
docker build -t example2:latest .
cd ..
mkdir images/
docker save example1:latest -o images/example1+latest.tar
docker save example2:latest -o images/example2+latest.tar
curl -s https://ci-tools.anchore.io/inline_scan-v0.6.0 | bash -s -- -v ./images -t 500
https://stackoverflow.com/questions/66322604
复制相似问题