I can’t seem to find a straight answer anywhere.
I’m a node guy, but this tutorial is in python, so I’m rolling with it.
I’m stuck in the tutorial, part3, prereq, last bullet… is this necessary and why?
$docker run -d -p 80:80 joha0033/image1repo:image1tag
* Running on http://0.0.0.0:80/ (Press CTRL+C to quit)
looks ok… but…
I cannot get the following lines to work for me…
$curl -4 http://localhost/
curl: (7) Failed to connect to localhost port 80: Connection refused
[permission error of some sort, right?]
Chrome: http://localhost/ - refused to connect
I have been told “You need root permissions to bind to a port below 1024,” but I cannot get a straight answer on how, or why… please help!
I’ve tried adding net_bind_service, but maybe I’m doing that wrong?
$docker run -p 180:80 -d --cap-add NET_BIND_SERVICE joha0033/image1repo:image1tag
same problem, running, but localhost not working/refusing.
details on this stackoverflow: https://stackoverflow.com/questions/49992836/docker-pulling-image-from-tutorial-does-not-work-on-localhost-run-8080