I have created a docker image for python PyQt4 application using ubuntu 14.04 ,now when i run container i wan to access docker host ip and interfaces

I want to get docker host machine ip address and interface names i.e ifconfig of docker host machine. instead im getting docker container ip address on doing ifconfig in docker container.

It would be great if someone tell me to fetch ip address of docker host machine from a docker container.

i have tried doing ifconfig dockerhostname,
as a result i get error
dockerhostmachi: error fetching interface information: Device not found

This is my dockerfile

FROM ubuntu:14.04

Install dependencies

RUN apt-get update && apt-get install -y
python-dev
libffi-dev
libssl-dev
python-enum
apache2
libapache2-mod-wsgi
python-pip
python-qt4

RUN chmod -R 777 /var/log/apache2/error.log
RUN chmod -R 777 /var/log/apache2/other_vhosts_access.log
RUN chmod -R 777 /var/log/apache2/access.log
RUN chmod -R 777 /var/run/apache2/

RUN a2enmod wsgi

i need to get ifconfig result for docker host machine from a docker container or when i run docker image.

Source: StackOverflow