MoToots
MoToots
  • 2
  • 20 999
Running Docker using QEMU on an Android Device
Install Redis via Docker on an Android Device using Termux, QEMU and Alpine Linux.
www.motoots.com/2021/03/running-docker-using-qemu-on-android.html
github.com/mtpayne/test-connections
0:34 - Install Termux
1:32 - Install OpenSSH
2:37 - Install QEMU
2:50 - Install Alpine Linux
6:11 - Install Docker
7:34 - Install Redis
Commands:
qemu-system-x86_64 -smp 2 -m 2048 \
-drive file=alpine.qcow2,if=virtio \
-netdev user,id=n1,hostfwd=tcp::6379-:6379,hostfwd=tcp::9000-:9000 \
-device virtio-net,netdev=n1 \
-cdrom alpine-virt-3.13.2-x86_64.iso -boot d \
-nographic
docker run -d -p 9000:9000 --name=my-portainer -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer
มุมมอง: 18 443

วีดีโอ

MySQL, MongoDB, RabbitMQ, and Redis on an Android Device
มุมมอง 2.6K3 ปีที่แล้ว
Install MySQL, MongoDB, RabbitMQ, and Redis on an Android Device using Termux and Ubuntu. www.motoots.com/2021/03/mysql-mongodb-rabbitmq-and-redis-on.html github.com/mtpayne/test-connections 0:45 - Install Termux 1:40 - Install OpenSSH 2:45 - Install Ubuntu 3:44 - Install MySQL 5:20 - Install MongoDB 5:47 - Install RabbitMQ 7:25 - Install Redis

ความคิดเห็น

  • @mr.singul4rity
    @mr.singul4rity 7 วันที่ผ่านมา

    Thanks Bro ! ! ! 🙏

  • @tutacat
    @tutacat 24 วันที่ผ่านมา

    1024 is allowed, 1023 is privileged

  • @tutacat
    @tutacat 24 วันที่ผ่านมา

    Do not use play version any longer, it is no longer supported and may cause you problems.

  • @thegaizka8456
    @thegaizka8456 4 หลายเดือนก่อน

    Segmentation fault

  • @ShashankNaithani
    @ShashankNaithani 5 หลายเดือนก่อน

    I am getting nothing after this qemu-system-x86_64 -smp 2 -m 2048 \ -drive file=alpine.qcow2,if=virtio \ -netdev user,id=n1,hostfwd=tcp::6379-:6379,hostfwd=tcp::9000-:9000 \ -device virtio-net,netdev=n1 \ -cdrom alpine-standard-3.20.1-x86_64.iso -boot d \ -nographic all blank in the terminal what should I do?

  • @CuriosityWins-vi3ug
    @CuriosityWins-vi3ug 11 หลายเดือนก่อน

    Is it possible to install proxmox on phone the same way?

  • @mikediaz7048
    @mikediaz7048 ปีที่แล้ว

    Hello!Thanks a bunch,works perfect!

  • @not_brainrotted
    @not_brainrotted ปีที่แล้ว

    Its giving me error that there is no such file or directorh as "drive".

  • @hermanocabra
    @hermanocabra ปีที่แล้ว

    Why there is 55 mirrors for you? I'm out seeing 1 mirror and doesn't work

    • @AndroidGeeksOfficial
      @AndroidGeeksOfficial 7 หลายเดือนก่อน

      you need to timing the installation when alpine mirrors are fast to connect. My installation time is 7:00am and 3:00pm around this time setup-alpine is successfull

  • @seniorqa_auto5367
    @seniorqa_auto5367 2 ปีที่แล้ว

    Hi! After "setup-alpine" ... How would you like to use it? ('sys', 'data', 'lvm' or '?' for help) [?] sys ERROR: unable to select packages: sfdisk (no such package): required by: world[sfdisk] syslinux (no such package): required by: world[syslinux]

    • @yvanced9685
      @yvanced9685 ปีที่แล้ว

      I got the same error Bro did you got through any solution for this?

    • @yvanced9685
      @yvanced9685 ปีที่แล้ว

      I got the same error Bro did you got through any solution for this?

    • @seniorqa_auto5367
      @seniorqa_auto5367 ปีที่แล้ว

      @@yvanced9685 no (

    • @G4b_chan
      @G4b_chan 7 หลายเดือนก่อน

      same error here, did you got trhough any solution?

  • @punyakoin3523
    @punyakoin3523 2 ปีที่แล้ว

    Amazing tutorial .... thx for all

  • @TheCryptoCurrencyNews
    @TheCryptoCurrencyNews 2 ปีที่แล้ว

    I need help. Since is one year old video now alpine have updated version. 13.7. It's not getting repo. Erorr is coming please update your video very help full

  • @haicuongduong2068
    @haicuongduong2068 2 ปีที่แล้ว

    why port is 8022

  • @lakshaynz
    @lakshaynz 2 ปีที่แล้ว

    U da man

  • @lakshaynz
    @lakshaynz 2 ปีที่แล้ว

    Bro Thank you very much !

  • @DoorThief
    @DoorThief 2 ปีที่แล้ว

    Well this is awesome! Now I can run a portainer agent on my Pixel 3a. 🎊

  • @Solace-Ron
    @Solace-Ron 2 ปีที่แล้ว

    What is the command in 32 bit platform for installing qemu?

  • @최강재-y9c
    @최강재-y9c 2 ปีที่แล้ว

    It worked like a charm. Many thanks!

  • @hiepbuh8294
    @hiepbuh8294 2 ปีที่แล้ว

    Instal arch linux plesea

  • @Kiran_Kumari
    @Kiran_Kumari 2 ปีที่แล้ว

    I have 4gb ram phone had to do 1gb in memory to make it boot

  • @moocom3389
    @moocom3389 2 ปีที่แล้ว

    Will pihole-docker work?

  • @sssira
    @sssira 2 ปีที่แล้ว

    my alpine won't boot after powering off my android device won't support or what??

  • @dongandul
    @dongandul 2 ปีที่แล้ว

    Hi! Good Video, I`m learning this stuff...Question: Can I run my own docker image with this in a smartphone?

    • @0x007A
      @0x007A 2 ปีที่แล้ว

      You'd have to create the Dockerfile, build the container image, host it oh DockerHub, and then use docker pull to retrieve the image. Alternatively, build the image within Alpine Linux running on QEMU; this requires the same tool chain (gcc et. al.). So the short answer is yes, you can run your own Docker image with this in a smartphone.

  • @caglarpeker5083
    @caglarpeker5083 2 ปีที่แล้ว

    thank you soo much for nice sharing, ı tried many tıme on my android divice , is that valid for android device ??? can you help me please...

  • @haidars
    @haidars 2 ปีที่แล้ว

    My ISP provide me an Android smart 4k tv box, which is running android 8 and has 2 usb port, searching for this hack to install jellyfin, sonarr, radarr, qbitorrent on it and data save to USB drive

  • @keycodemon
    @keycodemon 2 ปีที่แล้ว

    Hi, I can't get 2 cores with "-smp 2", please tell me what I suppose to do!

    • @keycodemon
      @keycodemon 2 ปีที่แล้ว

      Ah, I fixed with this, I can get 4 cores -smp 8,sockets=2,cores=2,threads=2,maxcpus=8

  • @star.9038
    @star.9038 2 ปีที่แล้ว

    I figured it out but is there any way to run containers on multiple ports because currently I am only able to run my containers on port 9000 or map into 9000

  • @star.9038
    @star.9038 2 ปีที่แล้ว

    how can I connect VM Alpine Shell with SSH please help. I am trying to run container they are running but I am not able to access them. Let's say I have a express server running on port 4000. When I run the container I am unable to access

    • @keycodemon
      @keycodemon 2 ปีที่แล้ว

      You should open your port 4000 when you start qemu, add hostfwd to get it qemu-system-x86_64 -smp 2 -m 2048 \ -drive file=alpine.qcow2,if=virtio \ -netdev user,id=n1,hostfwd=tcp::4000-:4000,hostfwd=tcp::9000-:9000 \ -device virtio-net,netdev=n1 \ -cdrom alpine-virt-3.13.2-x86_64.iso -boot d \ -nographic

    • @keycodemon
      @keycodemon 2 ปีที่แล้ว

      And if you want to SSH to alpine, you should open port 22 when start qemu, too. When alpine booted, you can ssh to alpine.

  • @manikumarnune4017
    @manikumarnune4017 2 ปีที่แล้ว

    Hey man, you are awesome. Keep active on channel.

  • @azatecas
    @azatecas 3 ปีที่แล้ว

    i love this! how is the performance, ive run docker on a raspberry pi, would this be similar or faster since smarphones have faster chips

  • @parthapramanik8358
    @parthapramanik8358 3 ปีที่แล้ว

    Sir it's coming error while running command for portainer error coming that :- "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?" But the daemon started I saw that it's written started but it's not running please solve

    • @rizkiaap435
      @rizkiaap435 3 ปีที่แล้ว

      Are you solve it?

    • @mohamedbadawy9822
      @mohamedbadawy9822 2 ปีที่แล้ว

      the same issue here and cant find any solution yet 😢😢

    • @muhammadnuramin8623
      @muhammadnuramin8623 2 ปีที่แล้ว

      try command setsid containerd setsid dockerd before running your docker run

    • @muhammadnuramin8623
      @muhammadnuramin8623 2 ปีที่แล้ว

      @@bangertech look like yes

    • @warunakaushalya4157
      @warunakaushalya4157 ปีที่แล้ว

      Has this been resolved? So how?

  • @spike2k145
    @spike2k145 3 ปีที่แล้ว

    How to share host folder to guest qemu on docker for volume.

  • @jorgelopezcabrera1658
    @jorgelopezcabrera1658 3 ปีที่แล้ว

    This is gold

  • @erickapolinariovera6114
    @erickapolinariovera6114 3 ปีที่แล้ว

    Hello, can I connect via SSH from my PC to Alpine Linux? What should I do? Add hostfwd=tcp::22-:22 for SSH connection?

    • @Mauricetpayne
      @Mauricetpayne 3 ปีที่แล้ว

      You want to avoid mapping port 22 as mentioned in the article/video. Map it to something like 2022.(add ,hostfwd=tcp::2022-:22) Then when setting up Alpine. Make sure to setup openssh. Alpine disables ssh access via root. So you need to enable it. Install nano and edit the config file. apk add nano nano /etc/ssh/sshd_config Find '#PermitRootLogin prohibit-password' and change it to 'PermitRootLogin yes'.(Remove # and replace prohibit-password with yes.) Restart ssh with the command 'service sshd restart'. Now you should be able to login to Alpine using root and your password.(ssh root@192.168.0.68 -p 2022)

    • @erickapolinariovera6114
      @erickapolinariovera6114 3 ปีที่แล้ว

      @@Mauricetpayne Thank you, I’m really grateful for your help. But I did not use the root user, I added and granted administrative access to a non-root user for not edit the SSH config file. Now I can use docker.

    • @Mauricetpayne
      @Mauricetpayne 3 ปีที่แล้ว

      Awesome!

  • @arlandmv4053
    @arlandmv4053 3 ปีที่แล้ว

    this is gold!

  • @skorpionmk9390
    @skorpionmk9390 3 ปีที่แล้ว

    Can install Debian using this mode?

    • @Mauricetpayne
      @Mauricetpayne 3 ปีที่แล้ว

      I'm not familiar with Debian. But I went and got their cloud image. It's already in qcow2 format so I just made a copy. Then ran it in QEMU. wget cloud.debian.org/images/cloud/buster/daily/20210104-505/debian-10-nocloud-amd64-daily-20210104-505.qcow2 cp debian-10-nocloud-amd64-daily-20210104-505.qcow2 debian.qcow2 qemu-system-x86_64 -smp 2 -m 2048 \ -drive file=debian.qcow2,if=virtio \ -netdev user,id=n1,hostfwd=tcp::6379-:6379,hostfwd=tcp::9000-:9000 \ -device virtio-net,netdev=n1 \ -nographic Used arrows to install. root to login. poweroff to shutdown. That's all I tested. Hope it works out for you.

  • @ssdy133
    @ssdy133 3 ปีที่แล้ว

    Hello, when installing this "pkg install qemu-system-x86-64-headless" command, the installation failed due to network interruption. After connecting to ssh again, execute the command again and report an error. How can I solve it? Please give guidance and help, thank you

    • @Mauricetpayne
      @Mauricetpayne 3 ปีที่แล้ว

      Try purging the QEMU related packages.('apt purge package-name') Hope that works. Good luck