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 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 does not have mapped to…

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 instead of as Host IP in the port forwarding rule? is local host and will allow local access only I guess.