Mont a external driver to a volume and attach it to the container

I am trying to mount a ext4 partition on /dev/mmcblk0p2 a volume and attach that to a container, but facing few issues.

I use the following command to create a volume

docker volume create --driver local
–opt type=aufs
–opt device=/dev/mmcblk0p2
ext_part

The Volume creation is successful. But when i use the volume with docker it gives the following error:

docker run -d -v ext_part:/home/root/ docker.io/vivsundar/mount_test:latest
docker: Error response from daemon: failed to mount local volume: mount /dev/mmcblk0p2:/var/lib/docker/volumes/ext_part3/_data: no such device.
See ‘docker run --help’.

Any help will be greatly appreciated. Thanks

I messed up with the --opt type=aufs. That option is wrong and after changing it to --opt type=ext4 things started working properly

The correct command to create volume is

docker volume create --driver local
–opt type=aufs
–opt device=/dev/mmcblk0p2
ext_part

Thanks again !!