Sign inSign up

craigw9292/android-emulator

By craigw9292

Updated almost 11 years ago

A docker image for running an Android Emulator

Image
5

2.7K

craigw9292/android-emulator repository overview

This image is built on Ubuntu 14.04 and runs Docker with AUFS support. It allows you to run an Android Emulator via the Android SDK within the image and view the desktop via NoVNC.

Note! - This only works if your docker host supports AUFS otherwise you'll run out of space.

Follow these instructions to build a compatible docker host or cheat and use the public AMI I made available on AWS.

  • If you already have a AUFS Docker Host Just do a docker pull craigw9292/android-emulator Then run it, docker run -dt -p 6901:6901 craigw9292/android-emulator You can then surf to your host IP on 6901 and run the vnc_auto.html to see the Desktop.

  • The default vnc password is "vncpassword".

  • To build a compatible docker host do the following:

    • Setup Ubuntu 14.04 - if on AWS use the Ubuntu Marketplace AMI.
    • Make sure your host VM has at least 40GB of space, this image uses ~25GB when running.
    • With AUFS Docker can use the entire host file system for image space vs devicemapper which is the docker default but has terrible 10GB limits and increasing it will cause you problems.
    • Run the follow commands to install the aufs version of docker.
sudo apt-get update
sudo apt-get -y install linux-image-extra-$(uname -r)
sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\ > /etc/apt/sources.list.d/docker.list"
sudo apt-get update
sudo apt-get -y install lxc-docker
* Now follow the initial instructions, pull and run the docker image.

Once you're up and running over NoVNC you'll find the Android SDK under the home folder. ~/. There is also a demo AVD setup which can be run using ./android avd to load the AVD manager then run the supplied emulator.

If you want to build this all from scratch you can follow the instructions here, https://github.com/typemismatch/android-emulator

Tag summary

Content type

Image

Digest

sha256:215e3ac09

Size

3.5 GB

Last updated

almost 11 years ago

docker pull craigw9292/android-emulator