Here are the commands that I used for reference:
After few minutes, docker ps will show "health as unhealthy".
The default healthcheck options are these:
So, how is the time calculated here? Any idea?
Code:
docker run -dt --name tmp --health-cmd "curl -f http://localhost" busybox sh
docker ps
docker ps
docker ps
After few minutes, docker ps will show "health as unhealthy".
The default healthcheck options are these:
Code:
HEALTHCHECK --interval=5s CMD ping -c 1 172.17.0.2
--interval=DURATION(default:30s)
--timeout=DURATION(default:30s)
--start-period=DURATION(default:0s)
--retries=N(default:3)