Skip to content

Clarification about ports in docker #6

Description

@markwilkinson

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions