Issue #67
simpler docker IP-Address get command
This commit is contained in:
Tom Witkowski 2016-05-24 11:54:07 +02:00
parent adaaa25f47
commit 762e2ec07b

View File

@ -728,7 +728,11 @@ If your Host name is different then `default`, you have to specify it (`docker-m
<br> <br>
**On Linux:** **On Linux:**
1 - Run `ifconfig` in the terminal. 1 - Run `ifconfig` in the terminal and follow step 2 - or grep the IP directly by the following command.
```shell
$ ifconfig docker0 | grep 'inet' | cut -d: -f2 | awk '{ print $1}' | head -n1
```
2 - In the result search for `docker0`, your IP address will be next to `inet addr`. 2 - In the result search for `docker0`, your IP address will be next to `inet addr`.