# nerdctl_image_tag

Add a new tag to an existing image.

```rhai
nerdctl_image_tag(image, new_name) -> CommandResult
```

## Parameters

- `image` (string): Existing image name or ID
- `new_name` (string): New tag to add

## Returns

Returns a `CommandResult` with the tag operation output.

## Examples

```rhai
// Tag for versioning
let result = nerdctl_image_tag("myapp:latest", "myapp:v1.0");

// Tag for different registry
let result2 = nerdctl_image_tag("myapp:latest", "registry.local/myapp:latest");

print(result.success);
```

## Notes

- Does not create a new image, just adds a tag
- Original tag remains unchanged
- Useful for versioning and registry management
