Correctly configures Udocker so that it works properly in Termux.
It's a userspace implementation of Docker.
It means that it can, without root or custom-kernel, run Docker images and containers.
And it does this without spinning up an entire qemu-VM, which makes it much, much faster than any other alternatives.
https://f-droid.org/en/packages/com.termux/
https://github.com/indigo-dc/udocker
In Termux -
git clone --depth 1 https://github.com/George-Seven/Termux-Udocker ~/Termux-Udocker
bash ~/Termux-Udocker/install_udocker.sh
And done.
udocker --help
cd ~/Termux-Udocker; git pull
Here are example scripts provided for some popular Docker images -
~/Termux-Udocker/s-pdf.sh
Connect to it at - http://localhost:8080
~/Termux-Udocker/nextcloud.sh
Connect to it at - http://localhost:2080
~/Termux-Udocker/owncloud.sh
Connect to it at - http://localhost:2081
~/Termux-Udocker/httpd.sh
Connect to it at - http://localhost:2082
~/Termux-Udocker/redis.sh
Connect to it at - http://localhost:6379
PORT=9080 ~/Termux-Udocker/s-pdf.sh
Add PORT=number
before the script. Port must be from 1024~65535.
~/Termux-Udocker/s-pdf.sh 'echo hello world; echo hi'
To override the default startup commands with your own, add your commands after the script like so.