microsoft / microsoft/aspire

Local support for hostname and mac address overrides

Open
#12,344 0 comments 0 reactions 0 assignees View on GitHub
area-app-model
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Describe the bug

Right now is not possible to override a container's "hostname" or "mac-address" using WithContainerRuntimeArgs, they seem to be ignored, probably by design.

### Expected Behavior

There's some use cases (especially when running locally) where overriding hostname and/or mac address might be useful or needed to run the underlying container, in such cases it would be great to have a way to specify those values without them being ignored.

### Steps To Reproduce

```
builder.AddDockerfile("name", "context_path", "Dockerfile_path")
.WithContainerRuntimeArgs("--hostname", "YOUR_HOSTNAME", "--mac-address", "YOUR_MAC_ADDRESS")
```

### Exceptions (if any)

_No response_

### .NET Version info

_No response_

### Anything else?

_No response_

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.