Limit clair resource (#2924)

When run clair full scan it will take more than 60% percent of CPU if no limit
this change to limit clair to use at most 1.5cpu

We can this it to cpus when we move to docker compose3.0
This commit is contained in:
yixingjia 2017-08-01 22:11:26 -07:00 committed by Yan
parent fd855b59d5
commit af1b11df2f

View File

@ -37,6 +37,7 @@ services:
container_name: clair
image: vmware/clair:v2.0.1-photon
restart: always
cpu_quota: 150000
depends_on:
- postgres
volumes: