mirror of
https://github.com/HQarroum/docker-android.git
synced 2026-07-15 06:47:07 +02:00
fix: wipe/restart lost date (#3)
This commit is contained in:
@@ -76,7 +76,6 @@ You can generate one by running `adb keygen adbkey`, that generates 2 files - ad
|
||||
|
||||
override them inside ./keys directory.
|
||||
|
||||
|
||||
### Running the container
|
||||
|
||||
Once the image is built, you can mount your KVM driver on the container and expose its ADB port.
|
||||
@@ -87,6 +86,14 @@ Once the image is built, you can mount your KVM driver on the container and expo
|
||||
docker run -it --rm --device /dev/kvm -p 5555:5555 android-emulator
|
||||
```
|
||||
|
||||
### Save data/storage after restart (wipe)
|
||||
|
||||
All avd save in docker dir `/data`, name for avd is `android`
|
||||
|
||||
```bash
|
||||
docker run -it --rm --device /dev/kvm -p 5555:5555 -v ~/android_avd:/data android-emulator
|
||||
```
|
||||
|
||||
### Connect ADB to the container
|
||||
|
||||
The ADB server in the container will be spawned automatically and listen on all interfaces in the container. After a few seconds, once the kernel has booted, you will be able to connect ADB to the container.
|
||||
|
||||
Reference in New Issue
Block a user