# with_health_check

Set basic health check for the container.

```rhai
container.with_health_check(cmd) -> Container
```

## Parameters

- `cmd` (string): Health check command

## Returns

Returns the `Container` builder for method chaining.

## Examples

```rhai
let container = nerdctl_container_from_image("app", "nginx:latest")
    .with_health_check("curl -f http://localhost/ || exit 1")
    .build();
```

## Notes

- This is a chainable method
- Use `with_health_check_options()` for advanced configuration
- The command runs inside the container
- Container is considered healthy if command exits with 0
