Closed cocoonkid closed 2 years ago
I have a persistent Android installation (i.e. long-lived) and I bind mount:
/root/.android/
/root/android_emulator
I have a persistent Android installation (i.e. long-lived) and I bind mount:
* `/root/.android/` * `/root/android_emulator`
Hi @scottwallacesh, I tried to set volumes in my docker-file in this way but device resets (with data loss) every time I restart the docker:
version: '3'
services:
android-container:
image: budtmo/docker-android:emulator_13.0
# other settings
volumes:
- ./android:/root/.android/
- ./android-emulator:/root/android_emulator
I checked all in /var/lib/docker/volumes
docker ps -q | xargs docker container inspect -f '{{ .Name }} {{ .HostConfig.Binds }}'
But there must be the data somewhere?
In addition how can I specify my own custom volume?
Just add
-v ~/data:/data
to docker run ?