Is there a method can run my code before the container start

I want to mount bind a cloud disk before the container start,but i dont know to when or how to combine it with lxd work flow,the container should be blocked start before thos things done。in kubernetes, it can be done by csi or init-container or other hook command ,how should i do this thing on lxd?

No, but why aren’t you just adding the bind-mount to the LXD config (disk device)?