Android-emulator API-25 with armeabi-v7a image on ubuntu:16.04
2.5K
Forked from https://github.com/tracer0tong/android-emulator
Changes:
0.0.1
git clone https://github.com/dodoinblue/android-emulator cd android-emulator docker build .
Use Docker registry with latest tag:
$ docker pull netdodo/android-emulator:latest
$ docker run -d -P --name android netdodo/android-emulator
Now a container should be running in the background. Now restart adb-server to connect to the newly launched emulator.
$ docker port android
# Output
5037/tcp -> 0.0.0.0:32784
5554/tcp -> 0.0.0.0:32783
5555/tcp -> 0.0.0.0:32782 #<-- use this port
adb kill-server
adb connect 172.17.0.2:32782
If this does not work, use try following:
adb connect 0.0.0.0:32782
$ adb kill-server
$ adb connect 0.0.0.0:32782
If works, you should get messages like these:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
connected to 0.0.0.0:32782
$ adb devices
List of devices attached
0.0.0.0:32782 device
./gradlew connectedDebugAndroidTest
cd /User/test/test-app
docker run -P -v `pwd`:/workspace -n android bash -c "./gradlew assembleDebug"
Content type
Image
Digest
Size
1.7 GB
Last updated
over 9 years ago
docker pull netdodo/android-emulator