add support for multiple --tag flags in build by realrajaryan · Pull Request #785 · apple/container

@realrajaryan

dcantah

approved these changes Oct 21, 2025

0xEDU pushed a commit to 0xEDU/container that referenced this pull request

Oct 21, 2025
- Closes apple#732.

## Type of Change
- [ ] Bug fix
- [x] New feature
- [ ] Breaking change
- [ ] Documentation update

## Motivation and Context
Adds support for specifying multiple `-t` / `--tag` flags with the
`build` command. All specified tags will point to the same built image.

Example:
`container build -t myapp:latest -t myapp:v1.0.0 -t myapp:stable .`

## Testing
- [x] Tested locally
- [x] Added/updated tests
- [x] Added/updated docs

0xEDU pushed a commit to 0xEDU/container that referenced this pull request

Oct 21, 2025
- Closes apple#732.

- [ ] Bug fix
- [x] New feature
- [ ] Breaking change
- [ ] Documentation update

Adds support for specifying multiple `-t` / `--tag` flags with the
`build` command. All specified tags will point to the same built image.

Example:
`container build -t myapp:latest -t myapp:v1.0.0 -t myapp:stable .`

- [x] Tested locally
- [x] Added/updated tests
- [x] Added/updated docs

saehejkang pushed a commit to saehejkang/container that referenced this pull request

Oct 28, 2025
- Closes apple#732.

## Type of Change
- [ ] Bug fix
- [x] New feature  
- [ ] Breaking change
- [ ] Documentation update

## Motivation and Context
Adds support for specifying multiple `-t` / `--tag` flags with the
`build` command. All specified tags will point to the same built image.

Example:
`container build -t myapp:latest -t myapp:v1.0.0 -t myapp:stable .`

## Testing
- [x] Tested locally
- [x] Added/updated tests
- [x] Added/updated docs