Run Docker x86_64 on Android Tablets or Phones
Original idea: https://gist.github.com/oofnikj/e79aef095cd08756f7f26ed244355d62
This is a automatic installation script. As RAM is always an issue on a cell phone, we also install zram.
Check the Changes.
- Learn about wake locks in Termux: https://wiki.termux.com/wiki/Termux-wake-lock
$ bash -c "$(curl -fsSL https://raw.githubusercontent.com/egandro/docker-qemu-arm/master/termux-setup.sh)"
# WARNING: change your alpine root passwort (or run the custom installer if you want to start with a custom password)$ pkg update
$ pkg upgrade
$ pkg install git
$ git clone https://github.com/egandro/docker-qemu-arm.git
$ cd docker-qemu-arm
$ cp config.sample config.env
$ # vi config.env # change everything you want to need to change
$ ./install.sh$ $HOME/alpine
$ ./startqemu.sh- you can ssh to the VM with a 2nd Terminal and
ssh2qemu.shqemukey / qemukey.ssh are the generated SSH keys - run a
uname -aand adocker run hello-world
- Thanks to everybody who made this happen.
- Termux easily gets outdated very quickly! Sometimes packages dependencies or mirrors are broken.
- If you don't have the skills to properly fix this you might want to backup your data, uninstall and reinstall Termux.
- Alpine Linux & dns & ipv4 only vs ipv4/6 is (very often) broken.
- Mitigation: the script turns off ipv6 and set the dns to
8.8.8.8(can be changed).