https://rubenhm.org/blog/

Research, Writings + Code


Coding Annoyances


Docker for reproducible research on Android


While researching about docker I came across this reddit post on how to install anyfed in Termux on Android to run a Fedora linux image as a chroot on an Android phone.

A similar project, TermuxAlpine, runs Alpine linux on Termux. One can then install the docker client on Alpine and set it up to run images from a remote Docker engine via https or ssh.

For example, you can set up the remote Docker host at home, securing access with the instructions in the documentation for protecting the Docker daemon socket.

You can build and run Docker images, create data volumes, etc. Everything lives in the remote host, but it seems to work fine and you can run all kinds of things on your phone. For example, I have images for RStudio, and one with Ruby, Jekyll, and TeXLive for maintaining this website.


If you enjoyed this article, consider sharing it.

Follow for updates.


Follow for updates.

@rubenhm_org


Comments section


comments powered by Disqus