Skip to content

Commit 4273364

Browse files
authored
Update Docker command (#35518)
1 parent 9a9d45e commit 4273364

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aspnetcore/host-and-deploy/health-checks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The following example creates a health check endpoint at `/healthz`:
4343
[Docker](xref:host-and-deploy/docker/index) offers a built-in `HEALTHCHECK` directive that can be used to check the status of an app that uses the basic health check configuration:
4444

4545
```dockerfile
46-
HEALTHCHECK CMD curl --fail http://localhost:5000/healthz || exit
46+
HEALTHCHECK CMD curl --fail http://localhost:5000/healthz || exit 1
4747
```
4848

4949
The preceding example uses `curl` to make an HTTP request to the health check endpoint at `/healthz`. `curl` isn't included in the .NET Linux container images, but it can be added by installing the required package in the Dockerfile. Containers that use images based on Alpine Linux can use the included `wget` in place of `curl`.

0 commit comments

Comments
 (0)