How to attach dir storage pool to container and mount it?

I need docker with support to overlay2, because of this issue I am trying to setup a dir storage pool mounted in /var/lib/docker, can anybody point me how I can do this?

Thanks

Something like:

lxc storage create dir dir
lxc storage volume create dir docker
lxc config device add my-container docker disk pool=dir source=docker path=/var/lib/docker