You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
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.
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=Cto set language to english during the scriptthen
unset LC_ALLto fix it back to normal.