Docker Resource Management

Docker CPU shares

Relative CPU scheduling weight under contention, not an exclusive reservation or fixed ceiling. When only one group is runnable its own and ancestor limits still apply.

Formal Syntax & Structure

docker syntaxdocker
--cpu-shares=WEIGHT

Working Example

Example Snippetdocker
--cpu-shares=1024
Docker Reference