Is there a way to trigger a docker container depending on the space on host?

9 views
Skip to first unread message

chencho m-a

unread,
Nov 20, 2021, 7:35:29 AM11/20/21
to Jenkins Users
Hi, 

I have several jenkins slaves that start dockers containers to build my software. I would like to find a way to balance correctly the amount of dockers running at the same time. 

Now, this amount is a fixed value and I am wasting resources because I dont want to run more than the supported by the host. 

My bottleneck is the HDD, each container takes about 30Gb, and I would like to know if there is a plugin that check the hdd in the host, and starts a new docker depending on a certain limit .

Regards.
Reply all
Reply to author
Forward
0 new messages