Skip to content

Latest commit

 

History

History
executable file
·
91 lines (64 loc) · 1.18 KB

File metadata and controls

executable file
·
91 lines (64 loc) · 1.18 KB

Lab - Trivy

  • Take me to the Lab

Solutions to Lab - Trivy:

apt-get  update
apt-get install -y wget apt-transport-https gnupg lsb-release
wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | sudo apt-key add -
echo deb https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main | sudo tee -a /etc/apt/sources.list.d/trivy.list

 #Update Repo and Install trivy
 apt-get update
 apt-get install trivy -y
trivy image <image-name>
Yes
Network
0.17.2
Ok
docker pull python:3.10.0a4-alpine

trivy image --output /root/python_alpine.txt python:3.10.0a4-alpine
trivy image --severity HIGH --output /root/python.txt python:3.10.0a4-alpine
trivy image --input alpine.tar --format json --output /root/alpine.json