Docker Community Forums

Share and learn in the Docker community.

exposing port running on docker-machine to local network


(Sansupercool) #1

On my windows 10, I have docker container running on docker machine(that uses boot2docker), IP192.168.99.100, on that machine I have port 3141 open running devpi, I can access this ip on my local host, but I want to expose 192.168.99.100:3141 to local network.

the docker container I started was using this command

docker run -d --restart=always --name devpi -p 3141:3141 scrapinghub/devpi

since I have-p 3141:3143 I can open on the host machine running docker machine, but my host machine whose ip on internal network is 192.168.0.10 does not have 192.168.99.100:3141 mapped to 192.168.0.10:3141…

on Virtualbox runnning boot2docker VM, I have set port to 3141 forward

but above configuration is also not helping out… :frowning: so how can I configure this and where on windows 10 host machine ?


(Mikma) #2

Have you tried using 192.168.0.10 instead of 127.0.0.1 as Host IP in the port forwarding rule? 127.0.0.1 is local host and will allow local access only I guess.