If a Docker container crashes, how does Traefik automatically adjust its routing configuration?

Question

Grade: Education Subject: Support
If a Docker container crashes, how does Traefik automatically adjust its routing configuration?
Asked by:
95 Viewed 95 Answers

Answer (95)

Best Answer
(360)
Traefik continuously monitors the health of its backend services (Docker containers) through health checks (typically HTTP probes). When a container fails a health check, Traefik automatically removes it from the routing configuration, preventing traffic from being routed to the unhealthy container. This ensures that only healthy containers receive requests.