Docker Community Forums

Share and learn in the Docker community.

Issues binding IP ports through -p


(Jouster) #1

On the attempt to run a command of say Docker run -d -p 10.2.0.50:8080:8080 langrisha/npm-lazy or any other repository for that matter, i get the error,

Error starting userland proxy:listen tcp 10.2.0.50:8080: bind: cannot assign requested address

All IP addresses fail and only the local host is able to work (127.0.0.1). I have no good ideas on how to fix this or how this problem came about, or even where to check for it.

EDIT+1= Any good tips or suggestions to troubleshoot this?


(Jeanepaul) #2

Greetings,

I will add a virtual interface on the host that has a different IP address than the primary
ifconfig eth0:1 10.2.0.50 netmask 255.255.255.0 up


Run cannot assign requested address
(Jouster) #3

Any updates? I might have found something pertaining to vim/vi file of /etc/sysconfig/docker-network which has something called DOCKER_NETWORK_OPTIONS= to nothing.