Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.43 KB

File metadata and controls

51 lines (32 loc) · 1.43 KB

Clair


Step 1:
  • Open terminal

Step 2:
  • Run cd /home/we45/container_training/Container/Container-Vulnerability-Assessment/Clair into Clair Lab Folder

    root@we45:~# cd /home/we45/container_training/Container/Container-Vulnerability-Assessment/Clair
    root@we45:container_training/Container/Container-Vulnerability-Assessment/Clair#
    
Step 3:
  • Run clair related docker containers

    • docker run -d -p 5432:5432 --name db arminc/clair-db:2017-09-18
     root@we45:container_training/Container/Container-Vulnerability-Assessment/Clair# docker run -d -p 5432:5432 --name db arminc/clair-db:2017-09-18
     e4cc159b0a71400ef6e57b4b2e5207b44bc4ceda630c27c551026a197b7f7414
    
    • docker run -d -p 6060:6060 --link db:postgres --name clair arminc/clair-local-scan:v2.0.1
    root@we45:container_training/Container/Container-Vulnerability-Assessment/Clair# docker run -d -p 6060:6060 --link db:postgres --name clair arminc/clair-local-scan:v2.0.1
    4e3e38be1f84ff757836ea1cf34184d160b90a9a63ee236b7134d2a842a74f58
    
Step 4:
  • Run Clair Scan
    • ./clair-scanner --ip <VM_IP> -r clair_report.json abhaybhargav/vul_flask:latest
Stop all running docker containers
  • Run clean-docker to stop all the containers
root@we45:~$ clean-docker