Windows – Linux – Mac OSX Guides

How to find the parent host IP from Docker container

how to find parent host ip from docker container

Quick and easy way to find out the parent host IP from Docker container.

1. Login to Docker container

$docker exec -it <container-name> /bin/bash

2. Show the parent host IP

$/sbin/ip route|awk '/default/ { print $3 }'
Tagged with:     ,

Related Articles

Loading Facebook Comments ...

Post your comments

Your email address will not be published. Required fields are marked *