- Take me to the Lab
Solutions to Lab - Trivy:
Details
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
Details
trivy image <image-name>
Details
Yes
Details
Network
Details
0.17.2
Details
Ok
Details
docker pull python:3.10.0a4-alpine
trivy image --output /root/python_alpine.txt python:3.10.0a4-alpine
Details
trivy image --severity HIGH --output /root/python.txt python:3.10.0a4-alpine
Details
trivy image --input alpine.tar --format json --output /root/alpine.json