Docker for Mac does not have a DOCKER0 bridge

Source: Internet
Author: User
Tags docker for mac

When using Docker, be aware of the differences between platforms, such as the Docker for Mac implementation and the standard Docker specification, Docker for Mac Daemon is running in virtual machines (XHYVE), Instead of running on a host as a process like Linux, the Docker for Mac does not have a DOCKER0 bridge and cannot implement the host network mode, which causes container to reuse the daemon network stack (in Xhyve virtual machines). Instead of the host hosts network stack, so that while other containers can still interact through the XHYVE network stack, it is not a port on the host (inaccessible on host). Bridge network mode-p parameter is not affected by this, it can open the port on host normally and map to the corresponding port of container. The documentation is not fully documented at this point, and it is easy to step on the pits.

Reference:

Docker Network mode

Hxyve Introduction

Docker for Mac does not have a DOCKER0 bridge

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.