Step 01 : Install Termux app in Android Phone
Step 02 : Install Openssh
pkg install root-repo
pkg upgrade
pkg install openssh
#change password on termux
passwd
...newpassword
...retype new password
#run openssh
sshd
#install utils
pkg install coreutils
#check ip
ifconfig
#conect to Android device
ssh <ip address of android device> -p 8022
Step 03 Install docker
อ้างอิง : https://github.com/mrp-yt/docker_and_portainer_on_dex
#Setup Alpine VM in Termux with this one-line-install command
curl -o termux-setup.sh https://raw.githubusercontent.com/egandro/docker-qemu-arm/master/termux-setup.sh && chmod 755 ./termux-setup.sh && ./termux-setup.sh
*This will take around 8 minutes to complete
#Run curl script. This will backup default startqemu.sh
curl -o portainer_port.sh https://raw.githubusercontent.com/mrp-yt/docker_and_portainer_on_dex/main/portainer_port.sh &&
chmod 755 ./portainer_port.sh &&
./portainer_port.sh &&
rm portainer_port.sh
#Start Alpine VM using new startqemu.sh file
cd ~/alpine/ && ./startqemu.sh
NOTE - Default login details:
User root
Passwd Secret123
#Portainer-CE container install command
docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
#To check if Portainer container is running.
docker ps
#Access Portainer Dashboard from same device
http://localhost:9000