Clarification about ports in docker #7
Replies: 1 comment
|
I converted this to a discussion since you are asking a question, not raising a bug/issue. Your first question is asking about the format of docker command line argument, specifically about how ports are published. Refer to the docker documentation which is pretty clear. Your second question is whether the Your third question is about how to receive on port I.e. the |
Uh oh!
There was an error while loading. Please reload this page.
Hi!
Your instructions for Docker are a bit... opaque...
$ docker run --restart always -d -p 8000:8000 bulletmark/corsproxy 8000=http://192.168.1.98
It appears that your software, inside of the container, is listening on port 8000 - is that correct? So does the 8000 in the argument refer to the external 8000 port, or the internal 8000 port?
If i wanted to receive requests on port 5000 and forward them to 192.168.1.1:9000, what would the equivalent docker command look like? I'm having problems understanding when everything is 8000 :-)
Cheers!
All reactions