Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A regular file was expected by the 'file' driver, but something else was given #17

Open
EinSoldiatGott opened this issue Sep 14, 2020 · 2 comments

Comments

@EinSoldiatGott
Copy link

Hi, I have the image lukechilds/dockerpi:vm
And the image 2020-08-20-raspios-buster-armhf-lite.img

I'm running the command like this:
docker run -it -v 2020-08-20-raspios-buster-armhf-lite.img:/sdcard/filesystem.img lukechilds/dockerpi:vm

But I get this error

C:\Users\usr\Downloads\2020-08-20-raspios-buster-armhf-lite>docker run -it -v 2020-08-20-raspios-buster-armhf-lite.img:/sdcard/filesystem.img lukechilds/dockerpi:vm

Booting QEMU machine "versatilepb" with kernel=/root/qemu-rpi-kernel/kernel-qemu-4.19.50-buster dtb=/root/qemu-rpi-kernel/versatile-pb.dtb
qemu-system-arm: --drive format=raw,file=/sdcard/filesystem.img: A regular file was expected by the 'file' driver, but something else was given

Is my raspbian image so new that is not supported?

Thanks

@drewgonzales360
Copy link

I ran into this issue too. My fix was that when you pass a full path to -v, it'll just do the file and won't try to mount a directory. Try putting the entire absolute path for your image as an argument.

docker run -it -v $(pwd)/2020-08-20-raspios-buster-armhf-lite.img:/sdcard/filesystem.img lukechilds/dockerpi:vm

docker run -it -v /path/from/root/2020-08-20-raspios-buster-armhf-lite.img:/sdcard/filesystem.img lukechilds/dockerpi:vm

@duganth
Copy link

duganth commented Jan 31, 2021

@drewgonzales360 thanks for the tip worked well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants