Docker-Android

Run a complete Android emulator within a Docker container. Access the UI via a web browser with noVNC, and automate your app testing with popular frameworks.

docker-android provides a comprehensive solution for running a full Android operating system inside a Docker container. It is designed for a wide range of tasks, from application development to automated testing of native, web, and hybrid apps. This tool simplifies the process of setting up consistent and isolated Android environments.

Key advantages include:

  • Versatile Emulation: Choose from a wide variety of device profiles and skins, including Samsung Galaxy S10, Nexus 7, and Pixel C.
  • Browser-Based Access: Interact with the Android UI directly from your web browser thanks to built-in noVNC support.
  • Automated Testing: Easily run unit and UI tests using popular frameworks like Appium and Espresso.
  • Remote Control: Manage the emulator from outside the container by using adb connect.
  • Easy Debugging: Access all device logs through a convenient web UI and utilize the video recording feature to capture test runs.

With pre-built images for Android versions 9.0 through 14.0, you can quickly spin up the exact environment you need for development or CI/CD pipelines.

Directory Structure

docker-android
videos
.env
docker-compose.yml

docker-compose.yml

services:
  docker-android:
    image: budtmo/docker-android:emulator_11.0
    privileged: true
    devices:
      - /dev/kvm:/dev/kvm
    ports:
      - "6080:6080"
      - "5554:5554"
      - "5555:5555"
      - "4723:4723"
    environment:
      - DEVICE=Samsung Galaxy S10
    volumes:
      - ./videos:/tmp/video

.env

# No sensitive environment variables are required for the default setup.
# Infrastructure settings are kept directly in the docker-compose.yml file.
Categories:

Share:

Ad
Favicon

 

  
 

Similar to Docker-Android

Favicon

 

  
  
Favicon

 

  
  
Favicon