Docker Resource Management

Docker memory limit and reservation

Hard memory ceiling and softer pressure-related constraint on supported hosts. A reservation does not allocate exclusive physical memory.

Formal Syntax & Structure

docker syntaxdocker
--memory=SIZE --memory-reservation=SIZE

Working Example

Example Snippetdocker
--memory=128m --memory-reservation=64m
Docker Reference