Docker Resource Management

Docker memory plus swap limit

Positive TOTAL represents combined memory and swap. Equal positive values disallow swap when supported. Verify effective swap limits and host availability separately.

Formal Syntax & Structure

docker syntaxdocker
--memory=SIZE --memory-swap=TOTAL

Working Example

Example Snippetdocker
--memory=128m --memory-swap=192m
Docker Reference