# Network bridge on host

**URL:** <https://forums.docker.com/t/network-bridge-on-host/12414>\
**Category:** Docker Desktop\
**Tags:** beta, macos\
**Created:** [May 17, 2016, 7:27am UTC](https://forums.docker.com/t/network-bridge-on-host/12414 "2016-05-17T07:27:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![elao](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/elao/32/10063_2.png) [@elao](https://forums.docker.com/u/elao)\
**Post date:** [May 17, 2016, 7:27am UTC](https://forums.docker.com/t/network-bridge-on-host/12414/1 "2016-05-17T07:27:16Z")

</div>

After reading all the related forum threads, i still don’t get it: do docker mac beta is supposed to set a docker0 bridge interface on the osx host, like it does on linux, so that containers are directly available from host via their local network ip ?

Or this bridge is only set/available on the alpine vm itself ?

### Information

`$ pinata diagnose -u OS X: version 10.11.4 (build: 15E65) Docker.app: version v1.11.1-beta11 Running diagnostic tests: [OK] docker-cli [OK] Moby booted [OK] driver.amd64-linux [OK] vmnetd [OK] osxfs [OK] db [OK] slirp [OK] menubar [OK] environment [OK] Docker [OK] VT-x Docker logs are being collected into /tmp/20160517-092613.tar.gz Most specific failure is: No error was detected Your unique id is: 6C1797C0-BF6D-4143-9A39-756B9F204561 Please quote this in all correspondence. `

---

<div class="post-metadata">

**Author:** ![davetucker](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/davetucker/32/9374_2.png) [@davetucker](https://forums.docker.com/u/davetucker)\
**Post date:** [May 18, 2016, 12:16pm UTC](https://forums.docker.com/t/network-bridge-on-host/12414/2 "2016-05-18T12:16:38Z")

</div>

Currently the only way to access containers is by exposing a port.  
See [https://beta.docker.com/docs/mac/getting-started/#step-3-explore-the-application-and-run-examples](https://beta.docker.com/docs/mac/getting-started/#step-3-explore-the-application-and-run-examples). There is no `docker0` on the Mac.

---

<div class="post-metadata">

**Author:** ![vijaybose](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/vijaybose/32/12562_2.png) [@vijaybose](https://forums.docker.com/u/vijaybose)\
**Post date:** [July 25, 2016, 7:12pm UTC](https://forums.docker.com/t/network-bridge-on-host/12414/3 "2016-07-25T19:12:39Z")

</div>

Then how can I access VPN? Can you please guide me?

---

<div class="post-metadata">

**Author:** ![almirkadric](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/almirkadric/32/12451_2.png) [@almirkadric](https://forums.docker.com/u/almirkadric)\
**Post date:** [July 27, 2016, 10:11am UTC](https://forums.docker.com/t/network-bridge-on-host/12414/4 "2016-07-27T10:11:27Z")

</div>

This feature request is related to the following topic:

> [@Support tap interface for direct container access (incl. multi-host)](https://forums.docker.com/t/support-tap-interface-for-direct-container-access-incl-multi-host/17835/4):
>
> +1 on this feature I thought this was a hyperkit limitation but it turned out to be a configuration ability issue (or lack there of) reference here: [https://github.com/docker/hyperkit/issues/45](https://github.com/docker/hyperkit/issues/45) Though it would be ideal that docker comes with tap interfaces installed similar to VirtualBox and VMWare. Worst case scenario we should be able to extend the feature set of Moby if the feature is available via third party software (brew install tuntap).

---

<div class="post-metadata">

**Author:** ![inanc](https://avatars.discourse-cdn.com/v4/letter/i/49beb7/32.png) [@inanc](https://forums.docker.com/u/inanc)\
**Post date:** [May 10, 2017, 2:51pm UTC](https://forums.docker.com/t/network-bridge-on-host/12414/5 "2017-05-10T14:51:08Z")

</div>

When a container configured for `network_mode: host` in docker-compose, for example, I can’t expose ports as usually adviced. **What else can I do?**

---

<div class="post-metadata">

**Author:** ![almirkadric](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/almirkadric/32/12451_2.png) [@almirkadric](https://forums.docker.com/u/almirkadric)\
**Post date:** [July 19, 2017, 3:00pm UTC](https://forums.docker.com/t/network-bridge-on-host/12414/6 "2017-07-19T15:00:48Z")

</div>

For those who haven’t yet got a working solution for this, I have created a shim workaround for this issue in this project. It behaves the exact same as the hvint0 interface on Windows

> **[GitHub - AlmirKadric-Published/docker-tuntap-osx: A tuntap shim installer for...](https://github.com/AlmirKadric-Published/docker-tuntap-osx)**
>
> A tuntap shim installer for "Docker for Mac". Contribute to AlmirKadric-Published/docker-tuntap-osx development by creating an account on GitHub.

More details can be found here:

> [@Support tap interface for direct container access (incl. multi-host)](https://forums.docker.com/t/support-tap-interface-for-direct-container-access-incl-multi-host/17835/21):
>
> @strayerror @michaelhenkel @dimitrasz I just pushed up my version of the shim installer here [https://github.com/AlmirKadric-Published/docker-tuntap-osx](https://github.com/AlmirKadric-Published/docker-tuntap-osx). I chose not to contribute to your shim installer @strayerror as my version works a little differently in terms of the architecture as it doesn’t bring up a docker network (this pollutes the iptables with forward blocking) which results in having to keep your containers on that networks subnet. Instead it creates a full bridge allowing you to cr…

Honestly the fact this issue hasn’t been fixed is ridiculous so I plan to make some waves with this package. Request to update docs here:  
docker/docker.github.io#3922

Please up-vote and comment your support so that this issue gets the attention it deserves

---

<div class="post-metadata">

**Author:** ![piorigin](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/piorigin/32/42873_2.png) [@piorigin](https://forums.docker.com/u/piorigin)\
**Post date:** [October 17, 2023, 8:42am UTC](https://forums.docker.com/t/network-bridge-on-host/12414/7 "2023-10-17T08:42:46Z")

</div>

Hi, can we have any news abut that ?  
Support of your workaround on M1 ?
