mirror of
https://github.com/budtmo/docker-android.git
synced 2026-04-25 20:25:57 +03:00
[GH-ISSUE #59] how mount sdcard #47
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/docker-android#47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mehrdad-abdoli on GitHub (Jan 9, 2018).
Original GitHub issue: https://github.com/budtmo/docker-android/issues/59
I need to mount sdcard and send some images for app and site tests.
How can it be done?
I shared volume to docker but can not use adb push as it return:
adb: error: failed to copy '/media/qa105.jpg' to '/storage/sdcard/qa105.jpg': remote Read-only file system
@greenerchen commented on GitHub (Mar 8, 2018):
@mehrdad-abdoli You may try to mount sdcard (*.img) in the host running docker and to copy files to there. If you don't have additional sdcard image, try userdata-qemu.img or userdata.img in /root/android_emulator in docker-android containers.
@HasBert commented on GitHub (Mar 9, 2019):
@mehrdad-abdoli I think you adressed the wrong path. For me it works perfectly if I push the files to
/sdcard/picture.jpgwhich will the look something like that:connect to device:
adb connect <docker-ip>:5555become root (not needed):
adb rootpush data:

adb push /picture.jpg /sdcard/picutre.jpgif you have more than one device connected:
adb -s <docker-ip>:5555 push /picture.jpg /sdcard/picutre.jpgif you only choose the /sdcard path, then you need to display internal storage
You can also push it to the Download folder:
/sdcard/Download/picture.jpg