sickcodes / dock-droid

Docker Android - Run QEMU Android in a Docker! X11 Forwarding! CI/CD for Android!
https://hub.docker.com/r/sickcodes/dock-droid
GNU General Public License v3.0
1.02k stars 75 forks source link

File System #7

Open stgreenb opened 2 years ago

stgreenb commented 2 years ago

Is it possible to map a volume in docker so its visible to android?

"Modifying the Android filesystem" seems to do the opposite, though running sudo qemu-nbd --connect=/dev/nbd0 android.qcow2 -f qcow2 on the host where docker is loaded provided this output

qemu-nbd: Failed to blk_new_open 'android.qcow2': Could not open 'android.qcow2': No such file or directory

sickcodes commented 2 years ago

You can use a raw image file here:

-e ENV IMAGE_PATH=/home/arch/dock-droid/android.qcow2
-e ENV IMAGE_FORMAT=qcow2

https://github.com/sickcodes/dock-droid/blob/master/Dockerfile#L182-L183

You would have to move the android.qcow2 from /var/lib/docker into your current working directory, does that make sense?

stgreenb commented 1 year ago

image The bliss site seems to give an example of adding a -v /tmp/.X11-unix volume. But trying that I do not see the volume inside bliss.