DEV Community

Discussion on: Docker Tip - How to use the host's IP Address inside a Docker container on macOS, Windows, and Linux

Collapse
 
neftedollar profile image
Roman Melnikov

As I understand 'host.docker.internal' inside docker default network will be bonded to your host machine. If you can access with 'host.docker.internal' your host ports then everything is ok

Collapse
 
alexmikhalev profile image
AlexMikhalev

Great tip, way simpler and works out of the box without any need for AWK/SED.