Commit 0bf603c
feat: expose per-network Aliases to templates (#171)
The docker client already reports a container's per-network aliases
(docker.ContainerNetwork.Aliases), but they were discarded when building the
template context. Add an Aliases field to context.Network and populate it from
NetworkSettings.Networks so templates can generate DNS / vhost config keyed on
a container's network aliases.
Fixes #171
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 2ec1acf commit 0bf603c
3 files changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| 285 | + | |
285 | 286 | | |
286 | 287 | | |
287 | 288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| 463 | + | |
463 | 464 | | |
464 | 465 | | |
465 | 466 | | |
| |||
0 commit comments