Skip to content

Instantly share code, notes, and snippets.

@littlefuntik
Last active April 16, 2019 05:49
Show Gist options
  • Save littlefuntik/aa2f39408c63422fbcc3fafe51f4685c to your computer and use it in GitHub Desktop.
Save littlefuntik/aa2f39408c63422fbcc3fafe51f4685c to your computer and use it in GitHub Desktop.
Get DockerNAT IP address.

Linux or MacOS:

export SERVER = 'localhost'

Windows (PowerShell)

$Server = (Get-NetIPAddress -InterfaceAlias *docker* -AddressFamily IPv4).IPAddress

See https://www.vmgu.ru/search/Docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment