-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
Env Variables created for each of the ports in addition to env variables... #10061
Conversation
Can you please sign your commits following these rules: https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work The easiest way to do this is to amend the last commit:
|
} | ||
|
||
} | ||
for i := 0; i < len(l.Ports); { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just for _, p := range l.Ports
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes no reason now, just a copy of old code. I changes it now.
30b67e0
to
7bca6bb
Compare
LGTM |
We should probably add a few integration tests to enforce the environment variables for a container or it maybe pretty easy to write a unit test for this method. |
Yup, +1 to tests. |
@crosbymichael @LK4D4 Thanks for the review. I will add tests shortly. One scenario that I am not very convinced about is that env for range may show differently, for example |
7bca6bb
to
611a23a
Compare
Please see that I added a unit test for check all env variables. |
LGTM |
@LK4D4 Anything else to add to this or can we merge? |
Thanks for the tests! |
Env Variables created for each of the ports in addition to env variables...
... for port ranges, regression from #1834
Closes #9900
Signed-off-by: Srini Brahmaroutu srbrahma@us.ibm.com