Skip to main content
Version: v5.9.0

Download and start Android docker

ReDroid (https://github.com/remote-android/redroid-doc ) is an open source project for an Android Docker container solution.

We can make a customized Android Docker image from ReDroid or we can use the prebuilt image by ReDroid. ReDroid provides Docker images for multiple versions of Android.

In this document we will use the Docker image for Android 11 provided by ReDroid.

  1. Install the required kernel modules
apt install linux-modules-extra-`uname -r`
modprobe binder_linux devices="binder,hwbinder,vndbinder"
modprobe ashmem_linux
  1. Download Android Docker image
docker pull redroid/redroid:11.0.0-latest
note

The Android 11 Docker image provided by ReDroid is used here, but any other Android image could be used, according to the requirements.

  1. Start the Android Docker container
docker run --name=android11 -itd --rm --privileged -v ~/data:/data redroid/redroid:11.0.0-latest
note

We should use the --privileged option when launching as this argument is required to successfully launch the Android Docker container.

  1. After the Android Docker container has been launched successfully you can enter into the Android container by executing the following command:
docker exec -it android11 /system/bin/sh

You will find some NVMe devices:

ls /dev/nvme*
ls /dev/block/nvme*