apple / apple/container

[Request]: A direct option to assign or configure the container's IP address

Open
#282 11 comments 18 reactions 0 assignees View on GitHub
network
Dominant language
Swift
Stars
49.9k
Forks
1.8k
Avg merge
1d 20h
Merged PRs (30d)
22

Description

### Feature or enhancement request details

Currently, containers launched via the container CLI do not offer a way to define or control their IP address. This limits flexibility in several use cases, including:

- Local development scenarios that rely on predictable container IPs
- Inter-container communication, where fixed IPs are preferable
- Integration with tools or services expecting specific network behavior
- Testing network-related functionality that depends on a deterministic IP setup

While `--network` allows attaching to a custom network, it doesn't currently support IP address assignment or any advanced networking options.

Proposed Solution

Introduce an additional flag to `container run`, such as:

```
--ip
```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.