Check if Address.HostPort is static or dynamic?

Open
#174 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker, go
Domain
tooling

Research direction

Start by reading the Address struct and the template data path that supplies HostPort, then trace how Docker port mappings are represented for the two examples in the issue. Confirm whether the template can distinguish static and dynamic host ports, and define completion as a documented or tested way for templates to make that distinction.

Written by the indexing model from the issue text.

Description

Is there any way in the template I can tell the difference between ports: "4000" and ports: 5000:4000" in the Address struct? In the first case, HostPort is random, but in the second case it is 5000.

Dominant language
Go
Stars
4.6k
Forks
609
Avg merge
2d 18h
Merged PRs (30d)
4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nginx-proxy/docker-gen

All issues in nginx-proxy/docker-gen

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.