Skip to content
FunCoding

docker-android

Android in docker solution with noVNC supported, video recording, mcp server and AI-agent

Star
16,217
Category
Cloud & ops
Last commit
Nov 30, 2026

Paypal Donate PRs Welcome codecov Join the chat at https://gitter.im/budtmo/docker-android GitHub release

Docker-Android is a docker image built to be used for everything related to Android. It can be used for Application development and testing (native, web and hybrid-app).

Sponsors

WebShare

Webshare offers premium residential, ISP, and datacenter proxies at the lowest prices, with HTTP(S) and SOCKS5 support. 80M+ IPs in 195 countries, a 99.97% success rate, and 10 free proxies to start (no card required). Get 20% off your first purchase with code BUDTMO20. Try this now!.

ProxySeller

Proxy-Seller gives you reliable proxy infrastructure for any workflow: private residential, mobile (4G/5G/LTE), ISP, and datacenter IPv4/IPv6 proxies, all with HTTP(S) and SOCKS5 support. Tap into 47M+ residential IPs across 220+ locations, target exactly the country, city, or ISP you need, and count on 99.7% uptime backed by 24/7 support. Get 15% off with promo code BUDTMO.

Advantages of using this project

  1. Emulator with different device profile and skins, such as Samsung Galaxy S6, LG Nexus 4, HTC Nexus One and more.
  2. Support vnc to be able to see what happen inside docker container
  3. Support log sharing feature where all logs can be accessed from web-UI
  4. Ability to control emulator from outside container by using adb connect
  5. Integrated with other cloud solutions, e.g. Genymotion Cloud
  6. It can be used to build Android project
  7. It can be used to run unit and UI-Test with different test-frameworks, e.g. Appium, Espresso, etc.
  8. It support (http) docker-android MCP-Server (beta-version)
  9. It support Appium MCP
  10. It support AI-Agent (beta-version) - supported local-LLM server: Ollama, VLLM

List of Docker-Images

AndroidAPIUsage TypeImage with latest release versionImage with specific release version
11.030Developmentbudtmo/docker-android:emulator_11.0budtmo/docker-android:emulator_11.0_<release_version>
12.032Developmentbudtmo/docker-android:emulator_12.0budtmo/docker-android:emulator_12.0_<release_version>
13.033Developmentbudtmo/docker-android:emulator_13.0budtmo/docker-android:emulator_13.0_<release_version>
14.034Developmentbudtmo/docker-android:emulator_14.0budtmo/docker-android:emulator_14.0_<release_version>
11.030Production-likebudtmo/docker-android:emulator_playstore_11.0budtmo/docker-android:emulator_playstore_11.0_<release_version>
12.032Production-likebudtmo/docker-android:emulator_playstore_12.0budtmo/docker-android:emulator_playstore_12.0_<release_version>
13.033Production-likebudtmo/docker-android:emulator_playstore_13.0budtmo/docker-android:emulator_playstore_13.0_<release_version>
14.034Production-likebudtmo/docker-android:emulator_playstore_14.0budtmo/docker-android:emulator_playstore_14.0_<release_version>
---budtmo/docker-android:genymotionbudtmo/docker-android:genymotion_<release_version>
---budtmo/docker-android:mcpbudtmo/docker-android:mcp_<release_version>

List of Devices

TypeDevice Name
PhoneSamsung Galaxy S10
PhoneSamsung Galaxy S9
PhoneSamsung Galaxy S8
PhoneSamsung Galaxy S7 Edge
PhoneSamsung Galaxy S7
PhoneSamsung Galaxy S6
PhoneNexus 4
PhoneNexus 5
PhoneNexus One
PhoneNexus S
TabletNexus 7
TabletPixel C

Requirements

  1. Docker is installed on your system.

Quick Start

  1. If you use Ubuntu OS on your host machine, you can skip this step. For OSX and Windows OS user, you need to use Virtual Machine that support Virtualization with Ubuntu OS because the image can be run under Ubuntu OS only.

  2. Your machine should support virtualization. To check if the virtualization is enabled is:

    sudo apt install cpu-checker
    kvm-ok
    
  3. Run Docker-Android container

    docker run -d -p 6080:6080 -e EMULATOR_DEVICE="Samsung Galaxy S10" -e WEB_VNC=true --device /dev/kvm --name android-container budtmo/docker-android:emulator_14.0
    
  4. Open http://localhost:6080 to see inside running container.

  5. To check the status of the emulator

    docker exec -it android-container cat device_status
    

Using Nvidia GPU

  1. Make sure you have already installed and configured all needed nvidia components, e.g. nvidia-smi

  2. Run Docker-Android container

    docker run -d -p 6080:6080 -e EMULATOR_DEVICE="Samsung Galaxy S10" -e WEB_VNC=true -e EMULATOR_GPU=host -e NVIDIA_DRIVER_CAPABILITIES=all --device /dev/kvm --gpus all --name android-container budtmo/docker-android:emulator_14.0
    
  3. Make sure that Nvidia GPU is used

    docker exec -it android-container adb shell dumpsys SurfaceFlinger | grep -i GLES
    

Note: With EMULATOR_GPU=host on NVIDIA, the emulator renders on the GPU and runs headless, but its screen is black. Android works normally, so ADB, Appium and tests are unaffected. However, Some of Android's screen-composition shaders fail to compile on that path, so every captured frame is black. This affects noVNC, scrcpy, screencap, screenrecord and Appium screenshots.

Using AMD or Intel GPU

  1. Make sure the host has a working Mesa driver (amdgpu/i915) and a render node, e.g. ls -l /dev/dri/renderD128

  2. Run Docker-Android container, passing the render node and its group so that the emulator user can open it

    docker run -d -e EMULATOR_DEVICE="Samsung Galaxy S10" -e EMULATOR_GPU=host --device /dev/kvm --device /dev/dri/renderD128 --group-add $(stat -c %g /dev/dri/renderD128) --name android-container budtmo/docker-android:emulator_14.0
    
  3. Make sure that the GPU is used

    docker exec -it android-container grep "Selecting Vulkan device" /home/androidusr/logs/device.stdout.log
    

The emulator runs headless (-no-window), so noVNC does not show it, but ADB, Appium and screencap screenshots work. Tested with an AMD Radeon RX 5700 XT (RADV NAVI10) and the integrated GPU of a Ryzen 7 5700G (RADV RENOIR).

Persisting data

The default behaviour is to destroy the emulated device on container restart. To persist data, you need to mount a volume at /home/androidusr: docker run -v data:/home/androidusr budtmo/docker-android:emulator_14.0

WSL2 Hardware acceleration (Windows 11 only)

Credit goes to Guillaume - The Parallel Interface blog

Microsoft - Advanced settings configuration in WSL

  1. Add yourself to the kvm usergroup.

    sudo usermod -a -G kvm ${USER}
    
  2. Add necessary flags to /etc/wsl.conf to their respective sections.

    [boot]
    command = /bin/bash -c 'chown -v root:kvm /dev/kvm && chmod 660 /dev/kvm'
    

    Then, using PowerShell, open a notepad on notepad $env:USERPROFILE\.wslconfig. Inside, put these other flags:

    [wsl2]
    nestedVirtualization=true
    
  3. Restart WSL2 via CMD prompt or Powershell

    wsl --shutdown
    

command = /bin/bash -c 'chown -v root:kvm /dev/kvm && chmod 660 /dev/kvm' sets /dev/kvm to kvm usergroup rather than the default root usergroup on WSL2 startup.

nestedVirtualization flag is only available to Windows 11.

If this setup does not work, you may have an old WSL version. In that case, ignore \.wslconfig and put everything on /etc/wsl.conf, including the [wsl2] flag.

Talk to Your Emulator: AI-Agent & MCP

Control the emulator in plain language, e.g. "open the Settings app", powered by your own local LLM (Ollama or vLLM). Ready-to-run examples:

  1. Docker-Android MCP + AI-Agent
  2. Appium MCP + AI-Agent

Use-Cases

  1. Build Android project
  2. UI-Test with Appium
  3. Control Android emulator on host machine
  4. SMS Simulation
  5. Jenkins
  6. Deploying on cloud (Azure, AWS, GCP)

Custom-Configurations

This document contains information about configurations that can be used to enable some features, e.g. log-sharing, etc.

Genymotion

For you who do not have ressources to maintain the simulator or to buy machines or need different device profiles, you can give a try by using Genymotion SAAS. Docker-Android is integrated with Genymotion on different cloud services, e.g. Genymotion SAAS, AWS, GCP, Alibaba Cloud. Please follow this document for more detail.

Emulator Skins

The Emulator skins are taken from Android Studio IDE and Samsung Developer Website

USERS

docker-android-users

PRO VERSION

Due to high requests for help and to be able to actively maintain the projects, the creator has decided to create docker-android-pro. Docker-Android-Pro is a sponsor based project which mean that the docker image of pro-version can be pulled only by active sponsor.

The differences between normal version and pro version are:

FeatureNormalProComment
user-behavior-analyticsYesNo-
AI-AgentNoYesCurrently supported local-LLM server: Ollama, VLLM, It can also control emulator via REST-API
proxyNoYesSet up company proxy on Android emulator on fly
languageNoYesSet up language on Android emulator on fly
Older Android versionNoYesSupport other newer Android version e.g. Android 9 and Android 10
Newer Android versionNoYesSupport other newer Android version e.g. Android 15, Android 16, Android 17, etc
root-privilegedNoYesAble to run command with security privileged
Selenium 4.x integrationNoYesRunning Appium UI-Tests againt one (Selenium Hub) endpoint for Android- and iOS emulator(s) / device(s)
multiple Android-SimulatorsNoYes (soon)Save resources by having multiple Android-Simulators on one docker-container
Google Play StoreNoYes (soon)-
Video RecordingNoYes (soon)Helpful for debugging

List pro-version images:

AndroidAPIUsage TypeImage with latest release versionImage with specific release version
9.028Developmentbudtmo2/docker-android-pro:emulator_9.0budtmo2/docker-android-pro:emulator_9.0_<release_version>
10.029Developmentbudtmo2/docker-android-pro:emulator_10.0budtmo2/docker-android-pro:emulator_10.0_<release_version>
11.030Developmentbudtmo2/docker-android-pro:emulator_11.0budtmo2/docker-android-pro:emulator_11.0_<release_version>
12.032Developmentbudtmo2/docker-android-pro:emulator_12.0budtmo2/docker-android-pro:emulator_12.0_<release_version>
13.033Developmentbudtmo2/docker-android-pro:emulator_13.0budtmo2/docker-android-pro:emulator_13.0_<release_version>
14.034Developmentbudtmo2/docker-android-pro:emulator_14.0budtmo2/docker-android-pro:emulator_14.0_<release_version>
15.035Developmentbudtmo2/docker-android-pro:emulator_15.0budtmo2/docker-android-pro:emulator_15.0_<release_version>
16.036Developmentbudtmo2/docker-android-pro:emulator_16.0budtmo2/docker-android-pro:emulator_16.0_<release_version>
17.037Developmentbudtmo2/docker-android-pro:emulator_17.0budtmo2/docker-android-pro:emulator_17.0_<release_version>
9.028Production-likebudtmo2/docker-android-pro:emulator_playstore_9.0budtmo2/docker-android-pro:emulator_playstore_9.0_<release_version>
10.029Production-likebudtmo2/docker-android-pro:emulator_playstore_10.0budtmo2/docker-android-pro:emulator_playstore_10.0_<release_version>
11.030Production-likebudtmo2/docker-android-pro:emulator_playstore_11.0budtmo2/docker-android-pro:emulator_playstore_11.0_<release_version>
12.032Production-likebudtmo2/docker-android-pro:emulator_playstore_12.0budtmo2/docker-android-pro:emulator_playstore_12.0_<release_version>
13.033Production-likebudtmo2/docker-android-pro:emulator_playstore_13.0budtmo2/docker-android-pro:emulator_playstore_13.0_<release_version>
14.034Production-likebudtmo2/docker-android-pro:emulator_playstore_14.0budtmo2/docker-android-pro:emulator_playstore_14.0_<release_version>
15.035Production-likebudtmo2/docker-android-pro:emulator_playstore_15.0budtmo2/docker-android-pro:emulator_playstore_15.0_<release_version>
16.036Production-likebudtmo2/docker-android-pro:emulator_playstore_16.0budtmo2/docker-android-pro:emulator_playstore_16.0_<release_version>
17.037Production-likebudtmo2/docker-android-pro:emulator_playstore_17.0budtmo2/docker-android-pro:emulator_playstore_17.0_<release_version>
---budtmo2/docker-android-pro:agentbudtmo2/docker-android-pro:agent_<release_version>
---budtmo2/docker-android-pro:seleniumbudtmo2/docker-android-pro:selenium_<release_version>

This document contains detail information about how to use docker-android-pro.

LICENSE

See License

Similar MCP servers

Netdata

Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.

NEnetdata/netdata82k123 new stars in the last 7 days

Oh My Posh Validator

Validate oh-my-posh configurations and segment snippets against the official schema.

JAJanDeDobbeleer/oh-my-posh24k29 new stars in the last 7 days

Coder

Manage Coder workspaces, templates, and cloud development environments

COcoder/coder18k57 new stars in the last 7 days

Featured

Windows-MCP

Control Windows apps, navigate files, interact with UI, and run QA tests.

CUCursorTouch/Windows-MCP12k286 new stars in the last 7 days

pal-mcp-server

The power of Claude Code / GeminiCLI / CodexCLI + [Gemini / OpenAI / OpenRouter / Azure / Grok / Ollama / Custom Model / All Of The Above] working as one.

BEBeehiveInnovations/pal-mcp-server12k21 new stars in the last 7 days

Desktop Commander

MCP server for terminal commands, file operations, and process management

WOwonderwhy-er/DesktopCommanderMCP10k72 new stars in the last 7 days