Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect value of NOMAD_HOST_PORT_<label> variable #1391

Closed
ksoftirqd opened this issue Jul 6, 2016 · 3 comments
Closed

Incorrect value of NOMAD_HOST_PORT_<label> variable #1391

ksoftirqd opened this issue Jul 6, 2016 · 3 comments

Comments

@ksoftirqd
Copy link

Nomad version

Nomad v0.3.2
Ubuntu trusty
docker-engine 1.11.2-0~precise

Issue

When i try using docker port map feature, both variables NOMAD_PORT_label and NOMAD_HOST_PORT_label within docker container have the same value.

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
aa1d3bd0d717 redis:latest "docker-entrypoint.sh" 6 minutes ago Up 5 minutes 10.1.5.113:20331->6379/tcp, 10.1.5.113:20331->6379/udp redis-b46241d3-1668-54d6-6667-ce6a4c910d9c

I expected NOMAD_PORT_label to be "6379" and NOMAD_HOST_PORT_label to be "20331" in this case. But they all are "6379".

Reproduction steps

nomad init
nomad run example.nomad

@Kemicalish
Copy link

I'm getting the same issue but on Nomad v0.4.0 and with a static port instead dynamic one.

static http port is 8010
port_map http port is 8000

and i get 8000 for both NOMAD_PORT_http and NOMAD_HOST_PORT_http.

@schmichael
Copy link
Member

@Kemicalish This bug was fixed in v0.4.1. Looks like we missed adding it to the changelog, sorry!

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants