Skip to content

Installation on Ubuntu for docker #9

@TwanoO67

Description

@TwanoO67

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions