I thought it was about installing Docker on Android, but it's about installing postmarketOS on a phone. Then yes, you have a regular Linux (although based on musl, instead of usual glibc) on which you can install Docker.
If you are going to setup a server on a phone, it might indeed be a good idea to avoid Android, mainly because of how aggressive the OOM killer can be with background apps.
On Android, killing a background app is not so much of an issue (caveat: [1]), they are designed for this. But you don't want your service or even your ssh deamon to be killed by Android.
Now, I don't know how running the phone 24/24 7/7 plugged in is going to last in the long run, especially concerning the battery. Has someone tried this?
[edit: see below comments, the post actually advises removing the battery]
[1] https://dontkillmyapp.com/
If you are going to setup a server on a phone, it might indeed be a good idea to avoid Android, mainly because of how aggressive the OOM killer can be with background apps.
On Android, killing a background app is not so much of an issue (caveat: [1]), they are designed for this. But you don't want your service or even your ssh deamon to be killed by Android.
Now, I don't know how running the phone 24/24 7/7 plugged in is going to last in the long run, especially concerning the battery. Has someone tried this?
[edit: see below comments, the post actually advises removing the battery]
[1] https://dontkillmyapp.com/