Correctly configures Udocker so that it works properly in Termux.
Update - Thanks to @IntinteDAO, udocker is now officially available in the Termux APT Repo. I've updated the configs to use it.
It's a user-space implementation of Docker.
This 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 -
And done.
Here are example scripts provided for some popular Docker images -
Note
Popular Docker repos provide 64-bit images, but not all of them provide the older 32-bit images.
Running uname -m, if it shows 64, then your phone is 64-bit. Which means it'll work for everything given below.
You can still check if the repo supports 32-bit by checking the tag link next to the name.
Connect to it at - http://localhost:8080
Connect to it at - http://localhost:8123
Connect to it at - http://localhost:8888
Connect to it at - http://localhost:2080
Connect to it at - http://localhost:2081
Connect to it at - http://localhost:8031
Note
Default Calibre-Web -
username: admin
password: admin123
Connect to it at - http://localhost:2082
Connect to it at - http://localhost:6379
Connect to it at - http://localhost:8096
Connect to it at - http://puter.localhost:4100
Add PORT=number before the script. Port must be from 1024~65535.
To override the default startup commands, append your own commands after the script, like this -