Docker for android using chroot-distro and pivot_root
chroot-distro install alpine
./pivot_alpine.shdd if=/dev/zero of=/docker-storage.img bs=1M count=10240
mkfs.ext4 /docker-storage.img
apk add mkfs.ext4
apk add e2fsprogs
mkfs.ext4 /docker-storage.img
mkdir -p /var/lib/dockerwget https://download.docker.com/linux/static/stable/aarch64/docker-24.0.9.tgz
tar -xzf docker-24.0.9.tgz
mv docker/* /usr/local/bin/
rm -rf docker docker-24.0.9.tgzapk add iptables-legacy
## Then symlink /bin/iptables to /bin/iptables-legacy
rm -f /usr/sbin/iptables
ln -sf /usr/sbin/iptables-legacy /usr/sbin/iptables
ln -sf /usr/sbin/ip6tables-legacy /usr/sbin/ip6tablesapk search crun
apk info crun 2>/dev/null | head -5
# If available:
apk add crun
crun --version
# Test it against the same cgroup layout
mkdir -p /tmp/crun-test/rootfs
cd /tmp/crun-test
cp -a /bin /etc /lib /usr rootfs/ 2>/dev/null
crun spec
crun run testctr 2>&1 | head -20
cd -./start_docker.sh
docker run hello-world