Host accessing unix domain sockets of instances

Is it possible to access the unix domain sockets of a container from the host without resorting to a process based proxy?

I’d like to be able to run sandboxes processes in LXD containers but then load-balance/failover them from a single NGINX process on the host with the minimum of latency.

You could create a path on the host to hold the sockets and then share that path with the container using a disk device.

1 Like

Cool I’ll give that a go… Will be more elegant than having to bind TCP ports…