This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
сканер_trivy [2026/03/18 14:22] val |
сканер_trivy [2026/03/20 06:13] (current) val |
||
|---|---|---|---|
| Line 7: | Line 7: | ||
| <code> | <code> | ||
| - | docker run --rm aquasec/trivy image nginx | + | $ docker run --rm aquasec/trivy image nginx |
| - | docker run --rm -v $HOME/.cache/:/root/.cache/ aquasec/trivy image nginx | + | $ time docker run --rm -v $HOME/.cache/:/root/.cache/ aquasec/trivy image nginx |
| + | </code> | ||
| + | * Docker образ [[Технология Docker#Приложение python pywebd]] | ||
| + | <code> | ||
| + | $ docker run --rm -v $HOME/.cache/:/root/.cache/ aquasec/trivy --insecure image gitlab.corpX.un:5000/student/pywebd | ||
| - | docker run --rm -v $HOME/.cache/:/root/.cache/ aquasec/trivy --insecure image gitlab.corp13.un:5000/student/pywebd | + | $ docker run --rm -v $HOME/.cache/:/root/.cache/ -v /var/run/docker.sock:/var/run/docker.sock aquasec/trivy image gitlab.corpX.un:5000/student/pywebd |
| - | docker run --rm -v $HOME/.cache/:/root/.cache/ -v /var/run/docker.sock:/var/run/docker.sock aquasec/trivy image pywebd | + | $ docker run --rm -v $HOME/.cache/:/root/.cache/ -v /var/run/docker.sock:/var/run/docker.sock aquasec/trivy image pywebd |
| - | $ docker run -v /var/run/docker.sock:/var/run/docker.sock -v $HOME/Library/Caches:/root/.cache/ aquasec/trivy image gitlab.corp13.un:5000/student/pywebd | + | $ docker run --rm -v $HOME/.cache/:/root/.cache/ \ |
| - | $ docker run -v /var/run/docker.sock:/var/run/docker.sock -v $HOME/Library/Caches:/root/.cache/ aquasec/trivy image pywebd | + | -v /var/run/docker.sock:/var/run/docker.sock \ |
| + | -v $(pwd)/.trivyignore:/work/.trivyignore -w /work/ \ | ||
| + | aquasec/trivy --exit-code 1 image pywebd && echo OK || echo Problems | ||
| + | |||
| + | ~/pywebd# cat .trivyignore | ||
| + | </code><code> | ||
| + | CVE-2026-22184 | ||
| + | #CVE-2026-27171 | ||
| </code> | </code> | ||