Docker Compose (5/16): le restart policy (no, on-failure, any)

Опубликовано: 04 Август 2026
на канале: Giovanni Pace - Archety
112
8

Docker Compose restart policies: handle crashing containers with no, on-failure, and any, and avoid crash loops.

What you'll learn in this video:
Understanding the exited state of a container
Simulating a crash with exit 1
Comparing the no, any, and on-failure policies
Limiting restarts and avoiding crash loops

Chapters:
0:00 The exited state of a container
2:31 Towards simulating a crash
5:01 Simulating a crash with exit 1
7:58 The no (default) policy
8:38 The any policy
9:50 Crash loops and resource consumption
11:08 The on-failure policy
13:18 Limiting restarts with max-retries

Full series on YouTube:    • Docker Compose Tutorial Completo in Italia...  

Other DevOps series, by topic:
⚠️ Quick Docker (the basics, watch this series first):    • Docker Rapido - Guida Completa ai Container  
Docker Desktop (Docker from the GUI, the basics):    • Docker Desktop: Guida Completa per Princip...  
Docker Lab (troubleshooting and interview questions):    • Docker Lab  
Spring Boot on Docker (containerizing a Java app):    • Spring Boot su Docker: guida completa alla...  
Docker Swarm (cluster, alternative to Kubernetes):    • Docker Swarm: Guida completa all’orchestra...  
Kubernetes with Minikube (orchestrating containers):    • Kubernetes tutorial da zero, con Minikube:...