Docker image to forward all traffic to the docker host host.docker.internal
PORTS
- whitelist of ports forwarded to docker host- a comma seperated list of ports and port ranges, default value:
0:65535
- a comma seperated list of ports and port ranges, default value:
docker run -it --rm --name 'dockerhost' --cap-add=NET_ADMIN --cap-add=NET_RAW qoomon/docker-host
docker run -it --rm --name dummy --link 'dockerhost' bash ping 'dockerhost'
version: '2'
services:
dockerhost:
image: qoomon/docker-host
cap_add: [ 'NET_ADMIN', 'NET_RAW' ]
mem_limit: 4M
restart: on-failure
dummy:
image: bash
command: ["ping" , "dockerhost"]