Magisk Docker
May 8, 2025 ยท View on GitHub
This repository contains a Magisk and KernelSU module for running Docker on rooted Android devices.
Prerequisites
- Magisk or KernelSU installed
- Docker Patched kernel See More
Quick Start & Installation
- Download the latest zip file from the Releases page.
- Install the downloaded zip file using Magisk & reboot your phone.
After installation, the Docker daemon (dockerd) will run automatically on boot.
Limitation
- This module only support
arm64architecture.
Available command
docker: This executes docker operation.dockerd.service: Used for managing dockerd service, you can start,stop,restart daemon and view live logs the dockerd operation.
export PATH=/data/adb/docker/bin:$PATH
export DOCKER_HOST="unix:///data/adb/docker/run/docker.sock"
You can add above lines to your shell profile (e.g., ~/.bashrc, ~/.zshrc) to set the environment variables automatically.
Cannot connect to docker daemon
- Verify that
dockerd.serviceis running. If not, restart it withdockerd.service restart. - You can also turn on or off dockerd service throuhgh magisk or kernelSU.
Other Error & Bugs
You can explore to the issue tab, if there not exists, you can open issue, for help me resolve the problem, you can include fresh log.
- Restart dockerd with
dockerd.service restart - Reproduce what are you doing which has problem.
- Get log at
dockerd.service log runsanddockerd.service log dockerd