Skip to content

docker container to forward all traffic to the docker host

License

Notifications You must be signed in to change notification settings

ms3eed/docker-host

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

docker container to forward all traffic to the docker host

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 84.0%
  • Dockerfile 16.0%