How to mount the docker.sock file to LXC/ LXD container?

Ok, so I think you’re going to have better luck if you use /run/docker.sock instead of /var/run/docker.sock, the reason for that is that /var/run is a symlink to /run but resolving that symlink may be made tricky due to all the namespaces used by lxd and snapd.

1 Like