Skip to content

Instantly share code, notes, and snippets.

@stevesloka
Created December 14, 2015 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevesloka/811af7975e7fad3c1834 to your computer and use it in GitHub Desktop.
Save stevesloka/811af7975e7fad3c1834 to your computer and use it in GitHub Desktop.
export CONTAINER_IP="echo `ifconfig eth0 2>/dev/null|awk '/inet addr:/ {print $2}'|sed 's/addr://'`"
export CONTAINER_IP_K8S=${CONTAINER_IP//./-}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment