From 762e2ec07bbf35a13d139b6a5109872294eae6f6 Mon Sep 17 00:00:00 2001 From: Tom Witkowski Date: Tue, 24 May 2016 11:54:07 +0200 Subject: [PATCH] Issue #67 Issue #67 simpler docker IP-Address get command --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5cf1528c..91fa2699 100644 --- a/README.md +++ b/README.md @@ -728,7 +728,11 @@ If your Host name is different then `default`, you have to specify it (`docker-m
**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`.