Docker HEALTHCHECK: what the command actually runs and what it doesn’t tell you

Короткий огляд матеріалу з Dev.to DevOps: Docker HEALTHCHECK: what the command actually runs and what it doesn't tell you.

A Docker HEALTHCHECK answers a single question: did the command you defined exit with code 0? Nothing more. It doesn't measure whether the app is "healthy" in any broad sense — it measures whether that specific command, at that specific moment, didn't fail. The official Docker documentation says it plainly: the HEALTHCHECK instruction tells Docker how to test a container to check that it's "still

Це адаптований дайджест українською, а не повний передрук статті.

Джерело: Dev.to DevOps

Залишити відповідь

Ваша e-mail адреса не оприлюднюватиметься. Обов’язкові поля позначені *