Network communication with node, daemon to set user quotes on zfs

I’m using Ubuntu 18.04, ZFS 0.8.1, LXD 3.14.

It is not possible to set user disk quotas inside a container as far as I understand.

But it can be set from the node side.

Is there any standart way to communicate with some daemon script on the node side?
Can I run some daemon, bind it to a socket and made this socket available to all containers?
Is there a way to get the node ip from container side?

The idea is to get request with unix user id from container and set zfs quotas by uid on the node side.