Query network information from Docker containers
2.1K
Query the host networking when working in a Docker environment on Rackspace
$ docker run --net=host --rm racknet/ip public
104.130.0.127
$ docker run --net=host --rm racknet/ip service
10.184.13.252
racknet public [ipv4|ipv6]
racknet service [ipv4|ipv6]
Examples:
$ racknet public
104.130.0.127
$ racknet service ipv6
fe80::be76:4eff:fe20:b452
Examples when run with Docker:
$ docker run --net=host racknet/ip public
104.130.0.127
Content type
Image
Digest
sha256:6dfa1877e…
Size
2.8 MB
Last updated
almost 11 years ago
docker pull racknet/ip