mirror of
https://github.com/rancher/quickstart.git
synced 2026-02-05 12:45:15 +01:00
Update configure_rancher_node.sh
added update to add node ip and name into /etc/hosts
This commit is contained in:
@@ -5,6 +5,7 @@ curlimage="appropriate/curl"
|
||||
jqimage="stedolan/jq"
|
||||
|
||||
agent_ip=`ip addr show eth1 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1`
|
||||
echo $agent_ip `hostname` >> /etc/hosts
|
||||
|
||||
for image in $curlimage $jqimage; do
|
||||
until docker inspect $image > /dev/null 2>&1; do
|
||||
|
||||
Reference in New Issue
Block a user