Docker for Windows - access container in local network

有些话、适合烂在心里 提交于 2019-12-11 15:18:20

问题


I have installed Docker for Windows on which I have running Nexus Repository Manager container. Now I want to make my nexus container be accessible from other pc's located in internal network.

How to do it?


回答1:


You have to map the port to the container. Example for port 443:

docker run -d -p 443:443 $imagename$

You also have to make sure that your windows firewall is not blocking that port. Maybe you have to create a new rule.

BR Hannes



来源:https://stackoverflow.com/questions/52003431/docker-for-windows-access-container-in-local-network

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!