I think Docker opens up a lot of ways to repurpose an old phone and turn it into a home server. The advantage over using something like RPi is that you have a touchscreen built in, making it much easier to troubleshoot without having to plug in a monitor and a keyboard.
Given how abundant old phones are, seems like it would be cool to have an Android distro specifically designed for this use case. Especially if you could plug in a USB hub for stuff like external storage.
a couple of more guides I’ve run across
https://crackoverflow.com/docs/system_administration/containerization/turn_android_phone_to_batteryless_home_server/
https://crackoverflow.com/docs/system_administration/containerization/install-docker-natively-on-android-phone-and-use-it-as-a-home-server/