Public | Automated Build

Last pushed: a year ago
Short Description
Android-emulator API-25 with armeabi-v7a image on ubuntu:16.04
Full Description

Android-emulator API-25 with armeabi-v7a image

Forked from


  1. Specify 16.04 as base image
  2. Include only API-25 SDK and its arm image.
  3. Removed SSH Server




git clone
cd android-emulator
docker build .

Pull & Run

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.

Use emulator

  1. Find which port is using:
    $ docker port android


5037/tcp ->
5554/tcp ->
5555/tcp -> #<-- use this port

2. Use the port linked with 5555 to start server.

adb kill-server
adb connect

If this does not work, use try following:

adb connect
$ adb kill-server
$ adb connect

If works, you should get messages like these:

* daemon not running. starting it now on port 5037 *
* daemon started successfully *
connected to
$ adb devices
List of devices attached   device
  1. Now you should be able to run test on this emulator
    ./gradlew connectedDebugAndroidTest

Use build environment

  1. Clone android app code to your host machine, say /User/test/test-app
  2. Start container, mount volume and specify build command.
    cd /User/test/test-app
    docker run -P -v `pwd`:/workspace -n android bash -c "./gradlew assembleDebug"


  1. Use emulator and gradle build in same container is not stable. Emulator may be killed for some reason.
  2. When you build, make sure your source code root does not contain a file.
Docker Pull Command
Source Repository