Droidspaces is an open-source container runtime that allows users to run complete Linux distributions on rooted Android devices and Linux computers. Inspired by LXC, it provides an alternative to traditional virtual machines, chroot environments, and user-space emulation tools.
Unlike solutions such as proot-distro, Droidspaces runs Linux containers directly on the host kernel. Each container can boot its own init system, including systemd, OpenRC, runit, and other supported alternatives. This makes it possible to run Ubuntu, Debian, Fedora, Arch Linux, Alpine, NixOS, OpenWrt, and other distributions with their normal services and system management tools.
The project combines a native container runtime with an Android application that simplifies installation and management. It also provides a Linux command-line interface for users who prefer managing containers from a terminal.
Download Droidspaces v7.2.0 - Software Mirrors |
|---|
Droidspaces v7.2.0 for Linuxdroidspaces_7.2.0-1_riscv64.deb | 237.03 kB droidspaces_7.2.0-1_i386.deb | 228.25 kB droidspaces_7.2.0-1_armhf.deb | 214.23 kB droidspaces_7.2.0-1_arm64.deb | 232.54 kB |
Droidspaces v7.2.0 for Android |
Droidspaces v7.2.0 Source Code |
Droidspaces v7.2.0 Release Notes:What's Changed
Automated Release by Droidspaces CI |
Features
1. Full Linux Distributions Without Virtual Machines
Droidspaces runs complete Linux userspaces using Linux kernel containerization features rather than hardware virtualization or CPU emulation.
This distinction is important because containers share the host kernel while maintaining separate environments for processes, filesystems, networking, and other resources.
Supported distributions include:
Ubuntu
Debian
Fedora
Arch Linux
Alpine Linux
NixOS
OpenWrt
Other compatible Linux root filesystems
Each container can run its own init system as PID 1. This means users can manage services, run background daemons, configure system timers, and use normal Linux administration tools.
Unlike conventional chroot environments, Droidspaces provides a more complete container environment with namespace and resource-management capabilities.
Because applications execute using the host CPU architecture and kernel, there is no virtualization or emulation overhead for native workloads. Actual performance still depends on the host hardware, kernel configuration, and resource limits.
2. Android Application and Container Management
Droidspaces provides an Android application that makes container management accessible without requiring users to perform every operation manually through a terminal.
The interface includes several management areas:
Home: Displays runtime status and system information.
Containers: Creates, installs, starts, stops, and manages Linux distributions.
Panel: Provides access to container terminals and management functions.
Settings: Controls runtime configuration, hardware access, networking, and other options.
Requirements: Checks whether the device kernel supports the required features.
Users can browse available distribution repositories, download root filesystems, configure container settings, and start their Linux environments through the application.
The Android app also handles backend installation and updates, making the initial setup easier than manually configuring every component.
3. Native Linux Command-Line Interface
Droidspaces is not exclusively an Android application. The same runtime also works on conventional Linux computers through its command-line interface.
The CLI provides container management operations, system checks, configuration options, and access to running environments.
It is particularly useful for:
Creating and installing containers.
Starting and stopping Linux distributions.
Entering a running container.
Executing commands inside containers.
Inspecting container information.
Configuring networking and resource limits.
Managing storage and bind mounts.
Automating container operations through scripts.
Linux users can also use the runtime without installing the Android application.
This makes Droidspaces useful for developers and administrators who want a lightweight container environment with similar behavior across Android and Linux.
4. Multiple Networking Modes
Droidspaces provides several networking configurations to accommodate different container deployment scenarios.
NAT Mode
NAT is the simplest option for most users. Each container receives its own network address and can access the internet through the host's network connection.
This mode is suitable for installing packages, running development servers, and accessing external services.
Gateway Mode
Gateway mode allows containers to use another container as their network gateway.
An OpenWrt container can provide routing, DHCP, DNS, and firewall services for other containers. This is useful when building a small network environment directly on an Android phone or Linux computer.
Macvlan Mode
Macvlan allows a container to appear as a separate device on a wired local network, receiving its own network address from the network router.
This is useful when a container needs direct LAN connectivity rather than operating behind the host's NAT.
The availability and behavior of these modes depend on the host network and kernel capabilities.
5. Desktop Environments on Android
One of Droidspaces' more interesting capabilities is running graphical Linux desktop environments on Android devices.
It supports integration with external display and audio components, allowing users to run graphical applications and desktop environments inside containers.
Supported components include:
Termux:X11: Provides an X11 display server for Linux graphical applications.
Anland: Provides a Wayland-based desktop experience on Android.
VirGL: Enables OpenGL acceleration through a virtualized graphics interface.
Qualcomm Turnip: Provides Vulkan graphics support for compatible Qualcomm Adreno GPUs.
PulseAudio: Connects Linux application audio to the Android device's sound system.
With the required components configured, users can run desktop environments such as KDE Plasma and other compatible graphical interfaces.
This makes an Android phone more than a terminal-based Linux environment. With suitable hardware and configuration, it can become a portable Linux desktop.
However, graphical performance depends on the device's GPU, drivers, display configuration, and selected rendering method.
6. GPU and Hardware Access
Droidspaces offers configurable hardware access for containers that need direct access to host devices.
Its GPU mode exposes the required graphics render nodes without giving the container unrestricted access to the entire host device directory.
This is useful for graphical applications, GPU-accelerated workloads, and desktop environments.
A separate hardware-access option exposes the host's real /dev devices, including:
GPU devices.
USB peripherals.
Input devices.
Sensors.
Block devices.
Storage partitions.
This provides greater flexibility for applications that need direct hardware access.
However, unrestricted hardware access introduces substantial risks. Exposing block devices means a privileged process inside the container could potentially modify or erase the phone's partitions. This option should only be enabled for trusted containers and specific use cases.
7. Nested Docker and Podman
Droidspaces supports running Docker and Podman inside Linux containers.
This is particularly interesting for developers who want to use familiar container tools on Android or create isolated development environments without installing a separate virtual machine.
The runtime also provides an Allow Sandboxing option that supports additional sandboxing mechanisms, including rootless Docker, rootless Podman, Flatpak, and bubblewrap.
This expands its usefulness beyond running conventional Linux applications.
However, nested container support depends on the host kernel's available features and configuration. Not every Android kernel will support every sandboxing or container workload.
8. Persistent Containers and Automatic Startup
Droidspaces supports containers that continue running independently of the Android application interface.
On Android, containers can be configured to start automatically during device boot, including before the lock screen is dismissed.
This is useful for turning an Android phone into a small server or always-available Linux environment.
Possible applications include:
Running Docker and Podman services.
Hosting development applications.
Running network utilities.
Operating an OpenWrt gateway.
Hosting lightweight web services.
Running background Linux processes.
Containers can continue operating when the management application is closed or uninstalled, provided the underlying runtime and boot integration remain installed.
This is an important distinction from applications that only provide a temporary terminal session.
9. Resource Management and Container Isolation
Droidspaces includes configurable resource controls for limiting how much of the host system a container can consume.
Available settings include:
Memory Limits: Restricts the amount of memory available to a container.
CPU Limits: Controls the amount of CPU time a container can consume.
Process Limits: Restricts the number of processes and threads running inside a container.
Swap Access: Controls whether memory-limited containers can use the host's swap space.
Bind Mounts: Makes selected host directories available inside a container.
Environment Variables: Passes custom environment variables into the container.
These options are particularly useful on Android, where memory and CPU resources are more constrained than on conventional desktop systems.
Resource limits can help prevent a container from consuming excessive memory or slowing down the entire device.
10. Flexible Storage Management
Droidspaces supports two primary container storage configurations.
Sparse Image Storage
The container's root filesystem resides inside an ext4 image file. The image grows as the container uses storage, up to its configured capacity.
This approach is particularly useful on Android devices using filesystems such as F2FS, where mounting a dedicated ext4 image provides a more predictable Linux filesystem environment.
It also makes container migration easier because the root filesystem is stored in a single image file.
Directory Storage
The root filesystem is stored directly in a normal directory.
This approach is easier to inspect and manage from the host, but filesystem compatibility and permissions can become important considerations on Android.
Users can also configure container storage on supported external storage locations, including SD cards and USB drives.
Performance and Compatibility
Droidspaces is written primarily in C and uses Linux kernel containerization features. It does not emulate another CPU architecture or boot a separate virtual machine for native workloads.
This provides a significant advantage over traditional emulation-based Linux environments, particularly when running applications built for the host architecture.
The runtime supports multiple CPU architectures:
x86_64
aarch64
armhf
x86
riscv64
Android support is more restrictive than Linux desktop support because the device needs root access and a compatible kernel configuration.
KernelSU is recommended, while Magisk and APatch are also supported. Most stock Android kernels lack some of the configuration options required by Droidspaces, so users may need a custom kernel.
On Linux, the requirements are more straightforward, although root privileges and compatible kernel features are still necessary.
One important security limitation is that Droidspaces is a privileged container runtime. It should not be treated as a security boundary equivalent to a strongly isolated virtual machine. A hostile root process inside a container may be able to access or compromise the host.
For this reason, users should avoid running untrusted software inside privileged containers.
System Requirements
Android
Rooted Android device.
KernelSU, Magisk, or APatch.
Linux kernel 3.10 or newer.
Kernel configuration options required by Droidspaces.
Compatible CPU architecture.
Sufficient internal or external storage for Linux distributions.
Android application and backend installation.
Most stock Android kernels do not include all required options. A compatible custom kernel may be necessary.
Linux
Linux distribution with kernel 3.10 or newer.
Root privileges.
Supported CPU architecture.
Compatible kernel namespace and container features.
Storage space for Linux root filesystems.
Internet connection for downloading distributions and packages.
The project recommends running its built-in requirements check before creating containers.
Pros and Cons
Pros
Runs complete Linux distributions without a virtual machine.
Supports Android and conventional Linux computers.
Provides an Android graphical management application.
Supports Ubuntu, Debian, Fedora, Arch, Alpine, NixOS, and OpenWrt.
Containers can boot systemd, OpenRC, runit, and other init systems.
Multiple networking modes, including NAT, gateway, and macvlan.
Supports Docker and Podman inside containers.
Provides GPU access and graphical desktop integration.
Supports Termux:X11, Anland, VirGL, and Qualcomm Turnip.
Containers can run persistently and start automatically on Android boot.
Configurable CPU, memory, and process limits.
Supports sparse image and directory-based storage.
Hardware and device access can be configured when needed.
Lightweight native runtime with support for multiple architectures.
Open-source GPL-3.0 license.
Cons
Android devices must be rooted.
Most stock Android kernels require additional configuration or replacement.
Kernel compatibility varies significantly between devices.
Privileged containers do not provide strong isolation from the host.
Hardware access can expose sensitive devices and storage partitions.
Desktop environments require additional configuration and compatible graphics components.
GPU acceleration depends on device drivers and supported hardware.
Not as straightforward to install as conventional Android applications.
Some advanced container and networking features require Linux administration knowledge.
How to Install
Droidspaces provides separate installation workflows for Android and Linux.
Android Installation
Check whether your Android device has root access and a compatible kernel.
Install a supported root management solution such as KernelSU, Magisk, or APatch if necessary.
Download the latest Android APK from the official GitHub releases page.
Install and launch the application.
Grant the requested root permissions.
Allow Droidspaces to install its backend and complete the required setup.
Open the Containers tab and select the add-container option.
Choose a Linux distribution from the available repositories.
Download and install the root filesystem.
Start the container and open its terminal from the Panel tab.
Linux Installation
Linux users can download the appropriate runtime package from the project's releases.
After installing the binary, run the requirements check:
sudo droidspaces checkFollow the official Linux installation guide to obtain a compatible root filesystem, prepare its storage image, and create the container.
The CLI can then be used to manage the container and execute commands inside the Linux environment.
Sources
Final Verdict
Droidspaces is an impressive open-source project that brings a more complete Linux container experience to Android devices. Its ability to run full distributions with their own init systems, networking, background services, and nested container workloads makes it considerably more capable than a conventional Android terminal application.
Its Android integration is particularly appealing. The graphical management application, automatic container startup, GPU acceleration, and desktop environment support turn compatible rooted phones into surprisingly flexible Linux machines.
Droidspaces is also useful on conventional Linux computers, where its lightweight runtime and architecture support provide an alternative container environment.
The biggest limitation is its dependency on root access and compatible kernel configurations. Android users with locked bootloaders or unsupported stock kernels cannot simply install the application and expect everything to work. Its privileged container model also requires careful security practices, especially when running third-party software.
Overall, Droidspaces is an excellent option for developers, Linux enthusiasts, Android power users, and anyone interested in running complete Linux environments directly on existing hardware.




