There's no such thing on the Mac? Docker -- net = host is invalid

Alibaba cloud Q & A 2022-02-13 06:22:18 阅读数:371

thing mac docker host invalid

docker run -p 8080:8080 ........ Write it like this Access to

Is it a system problem or a configuration problem ?




Take the answer 1:

Hello! ,Host Patterns only support Linux System ,Windows and macOS This parameter is not valid . Official documents :

The host networking driver only works on Linux hosts, and is not supported on Docker Desktop for Mac, Docker Desktop for Windows, or Docker EE for Windows Server.

copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130622162802.html