We have set up a linux server which hosts several ERPNext sites as LXD containers. The trick is to use NAT (network address translation). You can use iptables to accomplish that.
First you need to create firewall rules which specify:
the interface (for example: eth0, enp0s25, etc)
which ports are allowed to connect to
optionally, where do you allow connections from
Then you need to create NAT rules which specify:
interface in which the translated packets come from
wow, thanks @tatu. It’s always phantastic to see issues are being picked up even after a long time.
Would you mind to specify the version of LXD you are using? I’m pretty certain that LXD networking is going though some changes between different version of yet young LXD.
I have been able to install in an LXD container a long time ago and failed ever since. Can’t say this is due to try running inside an LXC/LXD Container or because the install.py just loves to not work
if I where you I’d try any of the existing manual installation how-to’s just inside a container