Docker for Windows - access container in local net

2019-08-28 02:22发布

问题:

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