Skip to content
Opsfolk

Running containers, topic 28 of 41

Resources and restart policies

Without limits a container may use all of the host's memory and CPU. --memory and --cpus set limits, and a container that passes its memory limit is killed.

A restart policy says what Docker does when a container exits: no, on-failure, always or unless-stopped. With unless-stopped, a service comes back after a crash and after the host reboots, and stays stopped when you stop it.

On Opsfolk

Nothing of ours for this topic yet: an article is on its way.

Elsewhere

Your progress