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:42] val |
сканер_trivy [2026/03/20 06:13] (current) val |
||
|---|---|---|---|
| Line 10: | Line 10: | ||
| $ time 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 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 pywebd | $ docker run --rm -v $HOME/.cache/:/root/.cache/ -v /var/run/docker.sock:/var/run/docker.sock aquasec/trivy image pywebd | ||
| Line 21: | Line 23: | ||
| -v $(pwd)/.trivyignore:/work/.trivyignore -w /work/ \ | -v $(pwd)/.trivyignore:/work/.trivyignore -w /work/ \ | ||
| aquasec/trivy --exit-code 1 image pywebd && echo OK || echo Problems | aquasec/trivy --exit-code 1 image pywebd && echo OK || echo Problems | ||
| + | | ||
| + | ~/pywebd# cat .trivyignore | ||
| + | </code><code> | ||
| + | CVE-2026-22184 | ||
| + | #CVE-2026-27171 | ||
| </code> | </code> | ||