Docker image to forward all traffic to the docker host
- uses dns entry
host.docker.internal
if available - or default gateway as docker host
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"]