budtmo / docker-android

Android in docker solution with noVNC supported and video recording
Other
9.57k stars 1.27k forks source link

How can I find the docker volume that is being used? #318

Closed cocoonkid closed 2 years ago

cocoonkid commented 2 years ago

I checked all in /var/lib/docker/volumes

docker ps -q | xargs docker container inspect -f '{{ .Name }} {{ .HostConfig.Binds }}'

/android-container []

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 ?

scottwallacesh commented 2 years ago

I have a persistent Android installation (i.e. long-lived) and I bind mount:

sandyboxy commented 11 months ago

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