| layout | default |
|---|---|
| title | π€ docker-android - Run Android Emulator in Docker Easily |
| description | π οΈ Run a lightweight Docker image with a customizable Android emulator, offering easy setup and KVM support for efficient mobile app testing. |
Welcome to the docker-android project! This guide will help you download and run a minimal and customizable Docker image for the Android emulator as a service. With docker-android, you can easily test Android applications in an isolated environment.
To get started, visit this page to download the latest version of the docker-android image: Visit Releases Page.
Follow these steps to install:
- Click on the link above.
- Look for the latest release at the top of the page.
- Download the appropriate file for your operating system.
Before you install docker-android, ensure your system meets these requirements:
- Operating System: Windows 10 or later, macOS Mojave or later, or a recent version of Linux.
- Docker: Ensure you have Docker installed. You can download it from the Docker website.
- Memory: At least 4 GB of RAM recommended for running the emulator smoothly.
- Storage: At least 5 GB of free disk space.
After downloading, follow these steps to run the Android emulator:
-
Open a Terminal or Command Prompt:
- For Windows, search for "cmd" in the Start menu.
- For macOS, open "Terminal" from Applications > Utilities.
- For Linux, use your preferred terminal application.
-
Run the Docker Command: Enter the following command to start the android-emulator:
docker run -d -p 6080:6080 -p 5555:5555 --name android-emulator docker-android
-
Access the Emulator: Open a web browser and navigate to
http://localhost:6080.
docker-android offers several customizable options to tailor the Android emulator to your needs. You can specify parameters such as:
- Screen Resolution: Set the emulator's display resolution.
- Device Type: Choose which virtual Android device to emulate.
- Android Version: Select the Android version you want to test on.
You can find more configuration details in the official documentation.
If you encounter issues while running docker-android, consider the following:
-
Docker Not Running: Ensure that Docker is running properly on your system.
-
Insufficient Resources: Check that your computer meets the memory and storage requirements.
-
Permission Errors: On Linux, you may need to add your user to the Docker group. Run this command:
sudo usermod -aG docker $USERThen, log out and back in to apply the changes.
Hereβs an example command that sets specific parameters for your Android emulator:
docker run -d \
-p 6080:6080 \
-p 5555:5555 \
--name android-emulator \
-e SCREEN=1280x720 \
-e DEVICE="Nexus 5" \
-e ANDROID_VERSION=29 \
docker-androidThis will start the emulator with a screen size of 1280x720 and emulate a Nexus 5 running Android 29.
1. Can I run multiple instances of the emulator? Yes, you can run multiple instances by assigning different names and ports when starting each one.
2. What if I want to stop the emulator? To stop the emulator, use this command:
docker stop android-emulator3. How do I remove the emulator? To remove the emulator completely, run:
docker rm android-emulatorIf you need help, check out the issues page on GitHub. You can also open a new issue if you have specific questions or problems.
We welcome contributions to the docker-android project. If you find bugs or have ideas for improvements, please feel free to create a pull request or report an issue.
This project is licensed under the MIT License. See the LICENSE file for details.
For more information, visit the wiki or read the documentation linked in the Releases page. Happy testing!