mirror of
https://github.com/goharbor/harbor.git
synced 2025-03-10 21:52:11 +01:00
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:
parent
fd855b59d5
commit
af1b11df2f
@ -37,6 +37,7 @@ services:
|
|||||||
container_name: clair
|
container_name: clair
|
||||||
image: vmware/clair:v2.0.1-photon
|
image: vmware/clair:v2.0.1-photon
|
||||||
restart: always
|
restart: always
|
||||||
|
cpu_quota: 150000
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
volumes:
|
volumes:
|
||||||
|
Loading…
Reference in New Issue
Block a user