Interview Prep/Docker/Resources, health checks, logging and restarts

`docker update --memory` fails: `Cannot update container ... Memory limit should be smaller than already set memoryswap limit`.

IntermediateTroubleshootingResources, health checks, logging and restarts
Answer

Likely causes → Existing memory-swap is lower than the new memory limit.

Diagnose → docker inspect -f '{{.HostConfig.MemorySwap}}' c.

Fix → docker update --memory 1g --memory-swap 1g c (set both).

Prevent → Set both values together.

All Docker questions Roadmap: Docker & containers

More on Resources, health checks, logging and restarts