Scan image with Trivy
Fail pipeline if HIGH or CRITICAL CVEs found
trivy image --exit-code 1 --severity HIGH,CRITICAL img:tag
- tool
- docker46 commands
More docker commands
-
docker sbom img:tagGenerate Software Bill of Materials for an image (Docker Desktop)
-
docker inspect <container> | jq '.[0].NetworkSettings.Networks'Drill into network settings of a running container
-
docker compose up -d --buildBuild and start all services in background
-
docker compose logs -f --tail=100 <service>Stream last 100 lines and follow a compose service
-
docker compose down -vStop and remove containers, networks, and volumes