Skip to content

Commit 7b5d8ef

Browse files
committed
Update documentation
Signed-off-by: Arjun Raja Yogidas <[email protected]>
1 parent 1accbf3 commit 7b5d8ef

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/healthchecks.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Health Check Support in nerdctl
22

3-
`nerdctl` supports Docker-compatible health checks for containers, allowing users to monitor container health via a user-defined command.
3+
`nerdctl` supports Docker-compatible health checks for containers, allowing you to monitor container health through user-defined commands.
44

55
## Configuration Options
66

@@ -31,7 +31,13 @@ When a container is created, nerdctl determines the health check configuration b
3131
You can disable health checks using the following flag during container create/run:
3232

3333
```bash
34-
--no-healthcheck
34+
nerdctl run -d --name app \
35+
--health-cmd="./health-check.sh" \
36+
--health-interval=30s \
37+
--health-timeout=10s \
38+
--health-retries=3 \
39+
--health-start-period=60s \
40+
myapp
3541
```
3642

3743
### Running Health Checks Manually

0 commit comments

Comments
 (0)