Skip to content

Getting containers internal ip the easy way#8

Open
akomic wants to merge 2 commits into
totem:developfrom
akomic:patch-1
Open

Getting containers internal ip the easy way#8
akomic wants to merge 2 commits into
totem:developfrom
akomic:patch-1

Conversation

@akomic
Copy link
Copy Markdown

@akomic akomic commented Oct 29, 2015

Getting containers internal ip the easy way

Alen Komic added 2 commits October 29, 2015 17:34
Getting containers internal ip the easy way
Comment thread bin/publish-node.sh
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea of using hostname. However, should we just pick the first host
HOST_IP=${HOST_IP:$(hostname -I | awk '{print $1}')} ?

The only case I could see multiple IP address is when we use --net=host. Even in that case, we might just pick the first IP in the list by default. Thoughts ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants