dockerpi icon indicating copy to clipboard operation
dockerpi copied to clipboard

Append New Port Forwarding

Open lmarschall opened this issue 4 years ago • 3 comments

Not exactly an issue,

but I did not found any proper explanation here to enable custom port forwarding from inside the qemu emulator. So I decided to host this issue, if anyone wants to accomplish the same task.

To append a new port just add the following in the nic line of the entrypoint.sh file

,hostfwd=tcp::8000-:8000

and rebuild the container from the repository.

Cheers,

Luke

lmarschall avatar Jul 30 '21 14:07 lmarschall

I've implemented a way to forward custom port using an environment variable in #32, check it out😉

matteocarnelos avatar Sep 06 '21 12:09 matteocarnelos

Hey @matteocarnelos, thanks for the heads-up, I'll take a look into it, is it already merged into main branch?

lmarschall avatar Sep 06 '21 12:09 lmarschall

Not yet, it is being reviewed

matteocarnelos avatar Sep 06 '21 13:09 matteocarnelos