# build

Build and run the container.

```rhai
container.build() -> Container
```

## Returns

Returns the `Container` with updated state after creation.

## Examples

```rhai
let container = nerdctl_container_from_image("web", "nginx:latest")
    .with_port("8080:80")
    .with_volume("/data:/usr/share/nginx/html")
    .with_env("NGINX_HOST", "localhost")
    .build();

// Container is now created and can be started
container.start();
```

## Notes

- This creates the container with all configured options
- Container is not started automatically
- Use `start()` method to start the container
- Throws detailed error if build fails with suggestions
