Difference between revisions of "HEALTHCHECK"
Jump to navigation
Jump to search
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
https://docs.docker.com/engine/reference/builder/#healthcheck [[Docker 1.12]] | https://docs.docker.com/engine/reference/builder/#healthcheck [[Docker 1.12]] | ||
+ | |||
+ | [[docker-compose.yml]] official example: | ||
+ | [[healthcheck:]] | ||
+ | test: ["CMD", "curl", "[[-f]]", "http://localhost"] | ||
+ | interval: 1m30s | ||
+ | timeout: 10s | ||
+ | retries: 3 | ||
+ | start_period: 40s | ||
== Related terms == | == Related terms == | ||
* [[Start configuration behavior and restart policy]] | * [[Start configuration behavior and restart policy]] | ||
− | * <code>docker-compose]]</code>: https://docs.docker.com/compose/compose-file/compose-file-v3/#healthcheck | + | * <code>[[docker-compose]]</code>: https://docs.docker.com/compose/compose-file/compose-file-v3/#healthcheck |
+ | * [[HealthCheck]] in [[AWS ECS Task definition parameters]] | ||
== See also == | == See also == | ||
* {{dockerfile}} | * {{dockerfile}} | ||
− | |||
− | |||
[[Category:Docker]] | [[Category:Docker]] |
Latest revision as of 19:28, 10 July 2023
https://docs.docker.com/engine/reference/builder/#healthcheck Docker 1.12
docker-compose.yml official example:
healthcheck: test: ["CMD", "curl", "-f", "http://localhost"] interval: 1m30s timeout: 10s retries: 3 start_period: 40s
Related terms[edit]
- Start configuration behavior and restart policy
docker-compose
: https://docs.docker.com/compose/compose-file/compose-file-v3/#healthcheck- HealthCheck in AWS ECS Task definition parameters
See also[edit]
Dockerfile: FROM, RUN, CMD, ENTRYPOINT, WORKDIR, COPY, ADD, USER, ENV, ARG, HEALTHCHECK
,hadolint, LABEL, EXPOSE
Advertising: