All languages

Docker

You're viewing a free preview. Sign in free to read every script.

Why this exists restart: unless stopped and restart always are good defaults: a service that crashes comes back. They are also very good at hiding problems . A container that crashes every ten seconds looks like Up 4…

Restart-Loop and OOM Detector: Find the Containers Docker Keeps Restarting and Learn Why

A script that flags containers that keep restarting or keep being killed for lack of memory, translates exit codes into causes (1, 125-127, 137, 139, 143, OOM) and prints the last log lines, tested on a container that crashes at startup, one that runs out of memory and a healthy one.

Sign in free to read this script, along with the rest of the library.

Sign in free