ROS and LXC and X11 server probelm

If you want your container to access the host’s X11 socket, try this profile.

I would ask further question at LXD discourse forum, because this is an Incus forum. Incus is a LXD fork created when Canonical took over the LXD project.