- Flash a kernel that support lxc & docker.
- Install lxc & docker in termux app.
- Set your lxc container config
lxc.start.auto = 1
. lxc-autostart
&dockerd
will start automatically.
Modify scripts in the /data/adb/service.d to customize the behavior of the service.
- Modify
PASSWORD
in /data/adb/service.d/locksettings-verify.sh to automatically decrypt /data partitions; - Modify
SETUP_DOCKER EXEC_DOCKERD
in /data/adb/service.d/start-container.sh to customize the behavior of the docker service; - Modify
NO_START_STOP
in /data/adb/service.d/auto-start-stop.sh to auto start/stop android system; - Copy & modify other scripts in
/data/adb/service.d
./service.d)(copy from ./service.d by yourself) to customize the behavior of those service.