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
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