User Tools

Site Tools


сканер_trivy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
сканер_trivy [2026/03/20 06:13]
val
сканер_trivy [2026/04/10 16:20] (current)
val
Line 8: Line 8:
 <​code>​ <​code>​
 $ docker run --rm aquasec/​trivy image nginx $ docker run --rm aquasec/​trivy image nginx
 +  или
 +$ docker run --rm aquasec/​trivy:​0.69.3 image nginx
 +  или
 +$ docker run --rm ghcr.io/​aquasecurity/​trivy image nginx
  
-$ time docker run --rm -v $HOME/​.cache/:/​root/​.cache/ ​aquasec/trivy image nginx+$ time docker run --rm -v $HOME/​.cache/:/​root/​.cache/ ​ghcr.io/​aquasecurity/trivy image nginx
 </​code>​ </​code>​
   * Docker образ [[Технология Docker#​Приложение python pywebd]]   * Docker образ [[Технология Docker#​Приложение python pywebd]]
 <​code>​ <​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/ ​ghcr.io/​aquasecurity/trivy --insecure 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.corpX.un:​5000/​student/​pywebd+$ docker run --rm -v $HOME/​.cache/:/​root/​.cache/​ -v /​var/​run/​docker.sock:/​var/​run/​docker.sock ​ghcr.io/​aquasecurity/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 ​ghcr.io/​aquasecurity/trivy image pywebd
  
 $ docker run --rm -v $HOME/​.cache/:/​root/​.cache/​ \ $ docker run --rm -v $HOME/​.cache/:/​root/​.cache/​ \
   -v /​var/​run/​docker.sock:/​var/​run/​docker.sock \   -v /​var/​run/​docker.sock:/​var/​run/​docker.sock \
   -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+  ​ghcr.io/​aquasecurity/trivy --exit-code 1 --severity HIGH image pywebd && echo OK || echo Problems
   ​   ​
 ~/pywebd# cat .trivyignore ~/pywebd# cat .trivyignore
 </​code><​code>​ </​code><​code>​
 +CVE-2026-28390
 CVE-2026-22184 CVE-2026-22184
-#CVE-2026-27171+CVE-2026-23949 
 +#CVE-2026-24049
 </​code>​ </​code>​
  
сканер_trivy.1773976416.txt.gz · Last modified: 2026/03/20 06:13 by val