- Open terminal
-
Run
cd /home/we45/container_training/Container/Container-Vulnerability-Assessment/Clair
into Clair Lab Folderroot@we45:~# cd /home/we45/container_training/Container/Container-Vulnerability-Assessment/Clair root@we45:container_training/Container/Container-Vulnerability-Assessment/Clair#
-
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
- Run
clean-docker
to stop all the containers
root@we45:~$ clean-docker