Windows的Docker-本地网络中的访问容器 [英] Docker for Windows - access container in local network
本文介绍了Windows的Docker-本地网络中的访问容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经安装了运行Nexus Repository Manager容器的Windows版Docker.现在,我想使我的nexus容器可以从位于内部网络中的其他PC访问.
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.
该怎么做?
推荐答案
您必须将端口映射到容器.端口443的示例:
You have to map the port to the container. Example for port 443:
docker run -d -p 443:443 $ imagename $
docker run -d -p 443:443 $imagename$
还必须确保Windows防火墙没有阻止该端口.也许您必须创建一个新规则.
You also have to make sure that your windows firewall is not blocking that port. Maybe you have to create a new rule.
BR汉尼斯
这篇关于Windows的Docker-本地网络中的访问容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文