Thursday, 27 April 2017

Cant reach node server running in docker container in vm

I have a dockerized node app running on an ubuntu-vm with static address, but can only reach it through localhost. I use the command: sudo docker run -d -p 49160:3000 8a5ccd9f4cca to start the app. I can reach running node servers on the vm without any trouble when they are run in the vm without docker. When i curl http://localhost:49160/test i get a response. but if i try to change it to curl http://:49160/test it doesnt work.

The forwarding port shows up when i netstat -l.

netstat -l command



via paul thomas korsvold

No comments:

Post a Comment