# stop

Stop the container.

```rhai
container.stop() -> CommandResult
```

## Returns

Returns a `CommandResult` with the stop operation output.

## Examples

```rhai
let container = nerdctl_container_from_image("web", "nginx:latest")
    .with_port("8080:80")
    .build();

container.start();

// Later, stop the container
let result = container.stop();
print("Container stopped: " + result.success);
```

## Notes

- Gracefully stops the container
- Sends SIGTERM then SIGKILL if needed
- Safe to call on already stopped containers
