Skip to content

Files

Latest commit

 

History

History
28 lines (22 loc) · 891 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 891 Bytes

docker-host

Docker image to forward all traffic to the docker host

  • uses dns entry host.docker.internal if available
  • or default gateway as docker host

Build Status Docker Stars

Docker Run Example

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'

Docker Compose Example

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"]