Comments (10)
@knqyf263 @masahiro331 Great, thanks!
from trivy.
user@host:~$ docker run -it -v /var/run/docker.sock:/var/run/docker.sock knqyf263/trivy:0.0.13 utrecht/bcbsn:2.0.0
docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"utrecht/bcbsn:2.0.0\": stat utrecht/bcbsn:2.0.0: no such file or directory": unknown.
The image exists on the hosts.
from trivy.
Change dockerfile CMD to ENTRYPOINT
Please use this command.
docker run -v /var/run/docker.sock:/var/run/docker.sock knqyf263/trivy:0.0.14 utrecht/bcbsn:2.0.0
If you use macOS, you can use local cache below command.
docker run -v /var/run/docker.sock:/var/run/docker.sock -v $HOME/Library/Caches:/root/.cache/ knqyf263/trivy:0.0.14 utrecht/bcbsn:2.0.0
from trivy.
@kolaente You can use Trivy
in a docker container. Please specify knqyf263/trivy:latest
or knqyf263/trivy:0.0.14
as an image name.
https://cloud.docker.com/u/knqyf263/repository/docker/knqyf263/trivy
from trivy.
The analysis works now:
[user@localhost ~]$ docker run -v /var/run/docker.sock:/var/run/docker.sock knqyf263/trivy:0.0.14 utrecht/bcbsn:2.0.0
Unable to find image 'knqyf263/trivy:0.0.14' locally
0.0.14: Pulling from knqyf263/trivy
e7c96db7181b: Pull complete
a62117a94668: Pull complete
fd4ece22b6c2: Pull complete
Digest: sha256:93b57cd8593c7a0c334b542951bdc62f16f2afdcc2e353ac5e2d532ba6d0f3ee
Status: Downloaded newer image for knqyf263/trivy:0.0.14
2019-05-19T10:25:32.818Z INFO Updating vulnerability database...
2019-05-19T10:28:24.555Z INFO Updating NVD data...
122550 / 122550 100.00% 2m18ss
2019-05-19T10:30:43.000Z INFO Updating Alpine data...
11119 / 11119 100.00% 11s1s
2019-05-19T10:30:55.245Z INFO Updating RedHat data...
19426 / 19426 100.00% 24s01s
2019-05-19T10:31:19.809Z INFO Updating Debian data...
27809 / 27809 100.00% 30s01s
2019-05-19T10:31:50.674Z INFO Updating Debian OVAL data...
59642 / 59642 100.00% 2m17ss
2019-05-19T10:34:07.811Z INFO Updating Ubuntu data...
30191 / 30191 100.00% 1m13ss
2019-05-19T10:35:23.654Z FATAL error in image scan: failed to scan image: failed to analyze OS: Unknown OS
from trivy.
When I run it for the second time, the scan takes still a while. What folder should be mounted to prevent this?
from trivy.
@030
Create DB at the first start, and use cache after the second.
To use cache with docker, mount the cache directory.Create DB at the first start, and use cache after the second.
Example for macOS:
docker run -v $HOME/Library/Caches:/root/.cache/ knqyf263/trivy:0.0.14 utrecht/bcbsn:2.0.0
Other case:
Please check your OS default cache directory.
from trivy.
@masahiro331 I think it is useful to add this to the README.md as well
from trivy.
@030
Please check here.
https://github.com/knqyf263/trivy#docker
Today added to README.md
knqyf263@2f7f1f8
from trivy.
If you have any questions, please reopen this issue. Thanks.
from trivy.
Related Issues (20)
- feat(pom.xml): parse `maven-metadata.xml` files for snapshot repositories.
- feat(pnpm): add support of Lockfile v9 HOT 3
- bug(misconf): eval_conflict_error in AVD-DS-0017 HOT 7
- fix(misconf): split docker commands by semicolon
- bug(misconf) Terraform module: "Failed to load module "improper constraint:"
- The InstalledFile of dpkg package should exclude directories HOT 1
- feat(misconf): Support symlinks inside of tar archives
- perf(misconf): High memory usage (9.5 GB) and long scan time (45 min) on some repos HOT 6
- --node-collector-namespace: Do not delete existing namespace HOT 1
- feat(conda): detect dependencies from environment.yml
- feat(conda): detect licenses for environment.yml
- Dependency tree HOT 2
- "Multiple types of OS packages in SBOM are not supported (["rpm" "deb"])" HOT 1
- node-collector: collect multi platform and multi cis-specs Node information
- bug(misconf): terraform local cache is ignored
- bug: Image scanning panics when using certain combination of options HOT 3
- feat(checks): Add support for deprecating checks HOT 1
- Trivy 0.51.0 rootfs scan throwing FATAL during vuln scan on root directory
- --image-config-scanners documentation parameter is incorrect
- feat: plugin Index HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trivy.