LXD container port forwarding
Create a container in lxd:
Now we configure a device and set to listen on a specific port:
Explanation: Here we configure lxc to add a device to the container mycontainer with device named myport80, proxy shows that we are adding lxd proxy device, so we connect "connect=tcp:127.0.0.1:80" conatiner port 80 to host "listen=tcp:0.0.0.0:80" port 80.
Last updated