spotify/docker-client

Support host config cpus

Aperta

#959 aperta il 6 gen 2018

 (10 commenti) (2 reazioni) (0 assegnatari)Java (551 fork)batch import
enhancementhelp wantedpinned

Metriche repository

Star
 (1430 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Description

Support host config --cpus=<value>

I know we have workaround, but it will be good to have --cpus.

set --cpus="1.5", the container will be guaranteed to be able to access at most one and a half of the CPUs. This is the equivalent of setting --cpu-period="100000" and --cpu-quota="150000". Available in Docker 1.13 and higher.

Guida contributor