Docker on Mobile, that too without root, How?

Kumar Gaurav Pandey
5 min readDec 26, 2023

As a DevOps engineer by day, and a Hardware Hacker by night, My mind decided, why not combine two?
Looking for challenges I started with the most basic yet most powerful tool in DevOps, Docker.
I recently rooted (you don’t need to be rooted to run docker though) my old android phone to run some new ROM on it (PixelOS, if you are wondering). It is an old 2019 Redmi Note 7, with following specs:

(The above configuration might be slightly different because I am running custom kernel as well as custom ROM on my device)

So I decided start with running docker on my mobile, but is it even possible ? Let’s dive in and see.

Step 0: Getting SSH access

(This is an optional step, if you don’t want to work on a computer it is perfectly fine. skip to step 1)

Let’s start with acquiring SSH access into our phones, so it easier for us to work with bigger screen and full sized keyboard.

To get started you will need a terminal emulator, I will be using Termux, you can use whichever feels convenient to you.

Let’s get started by updating our system:

pkg update && pkg upgrade

After this we will be installing some tools needed for ssh,

pkg install openssh git curl wget

--

--