Docker host IP from inside container

Moki Lv6
1
2
3
4
5
6
7
8
9
version: '3.7'

services:

xxxx:
image: yyyy
command: ping host.docker.internal
extra_hosts:
- host.docker.internal:host-gateway
On this page
Docker host IP from inside container