-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Hello,
On Ubuntu 16.04 it seems that ifconfig doesn't respond the same way as yours.
My Example:
docker0 Link encap:Ethernet HWaddr 02:42:5f:15:f8:28 inet adr:172.17.0.1 Bcast:172.17.255.255 Masque:255.255.0.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 Packets reçus:0 erreurs:0 :0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:0 Octets reçus:0 (0.0 B) Octets transmis:0 (0.0 B)
It seems that ifconfig response is language related.
So the grep is not working in
DOCKER_BRIDGE_IP=$(/sbin/ifconfig docker0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')
So In README, to be compatible with all distribution language, we should first do
export LC_ALL=C to set language to english during the script
then unset LC_ALL to fix it back to normal.