lukechilds / dockerpi

A Virtualised Raspberry Pi inside a Docker image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Append New Port Forwarding

lmarschall opened this issue · 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

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

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

Not yet, it is being reviewed