Windows 환경에서 --network host가 동작하지 않을 때

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.

You can also use a host network for a swarm service, by passing --network host to the docker service create command. In this case, control traffic (traffic related to managing the swarm and the service) is still sent across an overlay network, but the individual swarm service containers send data using the Docker daemon's host network and ports. This creates some extra limitations. For instance, if a service container binds to port 80, only one service container can run on a given swarm node.

 

프로젝트 폴더 공유때문에 Windows PowerShell에서 container 만들었는데, 포트 접근이 안된다 했더니 host 작동 안한다네요.

 

출처: stackoverflow.com,  docker.com