Run Android in a Docker Container!

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ธ.ค. 2024

ความคิดเห็น •

  • @TheMinocula
    @TheMinocula ปีที่แล้ว +5

    so cool to see you container-izing so many systems. thank you!

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

      Glad you enjoyed it!

  • @samuelcastro9399
    @samuelcastro9399 9 หลายเดือนก่อน +1

    Cool tutorial!!. Its what I need. My case of use is this: In order to approve (or not) some merge request from my team (from different projects) I want to display the app compiled from the branch of the request. The problem is: our apps has common code called "core"(company library), this code is versioned by number of code and client project and then its compiled to a maven local repository on my machine, so many times I can not test the app on emulator without changing my core's version(In which I'm working). So this is a first step to separate the two environments, one for my own developing work and other for the reviews tasks. Thank you!!

    • @BlaizeTech
      @BlaizeTech  9 หลายเดือนก่อน

      Glad it helped! Cheers!

  • @gg-gn3re
    @gg-gn3re 10 หลายเดือนก่อน +1

    You actually can run android 13 on galaxy S10. But USA uses qualcomm chips and all of which have locked bootloaders. Only USA, Japan and a portion of korea use qualcomm. Anyway the samsung chips are generally unlocked and you can install whatever on it. I have an S8 with version 13 on it, had to get some used one from ebay with the other type of chip

    • @BlaizeTech
      @BlaizeTech  10 หลายเดือนก่อน +1

      Nice that you can run 12 on something that old. I use a 3yo device right now. As long as it keeps ticking, I see no reason to upgrade. :)

    • @gg-gn3re
      @gg-gn3re 10 หลายเดือนก่อน +2

      @@BlaizeTech yea it's a real shame everything is locked in USA, they want them all to be trash once the carrier stops pushing updates.

    • @Unizuka
      @Unizuka 2 หลายเดือนก่อน

      isn't it possible to unlock the bootloaders?

    • @gg-gn3re
      @gg-gn3re 2 หลายเดือนก่อน

      @@Unizuka on 99% of devices no, on a very small amount of phones that were extremely popular, yea. The samsung S5 for example verizon and other carriers were eventually got bootloaders unlocked but AT&T WAS NEVER successfully unlocked.

  • @drygordspellweaver8761
    @drygordspellweaver8761 9 หลายเดือนก่อน +1

    Is there a windows replacement for the '--device /dev/kvm' command? Got this error: docker: Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory.

    • @drygordspellweaver8761
      @drygordspellweaver8761 9 หลายเดือนก่อน

      hmm also do you know where these containers are stored locally on windows? Thanks btw

    • @BlaizeTech
      @BlaizeTech  9 หลายเดือนก่อน

      I'm afraid not. KVM is a Linux thing. If you're going to run this, you really need to install KVM on a Linux box.

    • @drygordspellweaver8761
      @drygordspellweaver8761 9 หลายเดือนก่อน

      @@BlaizeTech hmm shouldn't android emulators run on windows / Hyper-V since 2018? Android studio is able to. I love Linux and have a server with it but the target machine I need to use this on is running windows... there must be a way somehow

    • @BlaizeTech
      @BlaizeTech  9 หลายเดือนก่อน

      C:\ProgramData\docker@@drygordspellweaver8761

    • @BlaizeTech
      @BlaizeTech  9 หลายเดือนก่อน

      ​@@drygordspellweaver8761 You can run the emulator on Windows, but it wouldn't be in docker. That should work fine with the tools from Android Studio.

  • @CombatMacro
    @CombatMacro 4 หลายเดือนก่อน +2

    It's fantastic, but how to restart this container? I restart the container, then vnc is not showing the phone panel, also if I power off the phone in vnc phone panel, the whole ohone panel disappares, I can't find where to turn on the phone. The only time vnc showing the phone is the first time init the container

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

      You may have to restart it from the CLI, or it might be a bug. I'm not sure.

  • @titirPakhi01
    @titirPakhi01 2 หลายเดือนก่อน +1

    Could you make a video on how to connect with this android-emulator and run appium tests?

    • @BlaizeTech
      @BlaizeTech  2 หลายเดือนก่อน

      I've never used appium before.

    • @ReaganStock-t4k
      @ReaganStock-t4k 29 วันที่ผ่านมา

      @@BlaizeTech It's not hard, that's my use case as well. Just allows automation of the Android device. I was hopin got find a solution to run these at scale w/ automation.

  • @music_foreveryone
    @music_foreveryone 8 หลายเดือนก่อน

    I want to do this process in a google cloud VM, but I have problems with virtualization, do you have a video on how to do this on a google cloud instance?

    • @BlaizeTech
      @BlaizeTech  8 หลายเดือนก่อน +1

      It might not have the stuff in the kernel enabled. I'm not sure it it's possible on GCP, as I'm more of an Azure guy.

  • @jgarland79
    @jgarland79 2 หลายเดือนก่อน +1

    I just tried using this and I don't see the phone or the emulator. I only see the wallpaper that says DOCKER ANDROID

    • @BlaizeTech
      @BlaizeTech  2 หลายเดือนก่อน

      Hmm... not sure. Are you use hardware assisted virtualization.

    • @robert-e6z
      @robert-e6z 19 วันที่ผ่านมา

      @@BlaizeTech i got the same issue too on my ubuntu machine

    • @BlaizeTech
      @BlaizeTech  19 วันที่ผ่านมา

      @@robert-e6z Looks like I may need to revisit this guy, then.

  • @vijenderbhootna4087
    @vijenderbhootna4087 2 หลายเดือนก่อน +1

    vnc doesnot work after restart docker container

    • @BlaizeTech
      @BlaizeTech  2 หลายเดือนก่อน

      I think it's a bug. Can you fix it with a PR?

  • @truepassion5711
    @truepassion5711 11 หลายเดือนก่อน

    can i use this on ARM based processors (like Pi)

    • @BlaizeTech
      @BlaizeTech  11 หลายเดือนก่อน

      Probably, but I have not tried that.

  • @DkBose-pi7hl
    @DkBose-pi7hl 8 หลายเดือนก่อน

    How add extra virtual storage to this novnc environment

    • @BlaizeTech
      @BlaizeTech  8 หลายเดือนก่อน

      Just mount a volume into the container.

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

    how about install android tv?

    • @BlaizeTech
      @BlaizeTech  3 หลายเดือนก่อน

      Challenge accepted. :D

  • @erickwidya
    @erickwidya 3 หลายเดือนก่อน

    it doesn't have any android device when i remote it

    • @BlaizeTech
      @BlaizeTech  3 หลายเดือนก่อน

      Not sure what you mean....

    • @erickwidya
      @erickwidya 3 หลายเดือนก่อน

      @@BlaizeTech i think because i can't use this param --device /dev/kvm, running using docker desktop with wsl 2 enabled. i have tried disable the wsl 2 but still no luck..
      any workaround?

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

    cool tutorial man! can you make one on a chromebooks on how to enable adb to install sideload apps on chromebooks?

    • @BlaizeTech
      @BlaizeTech  ปีที่แล้ว +1

      I wish I could help, I'm not too familiar with ChromeOS. For this one though, open the port for adb, and connect adb to the open port. It's in the documentation on the GH repo

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

      @@BlaizeTech im not really familiar with porting and stuff hehe or any adb linux type 👉👈

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

      @@BlaizeTechChromeOS restrict you on enabling adb you need to be in developer mode but data needs to be wipe don't want that to happen I just want to know how to bypass developer mode to download apps on chrome and installing it using a chromebook any idea would greatly appreciated and super beneficial to your channel 🫶

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

      adb us what will let you sideload apps and the like onto an emulator like this.

  • @MarcosFerreira
    @MarcosFerreira 8 หลายเดือนก่อน

    great tutorial. I only don't understand how do a Docker Pull Command, because i'm running docker in Windows.

    • @BlaizeTech
      @BlaizeTech  8 หลายเดือนก่อน

      This will need Linux to run. You'll need WSL or Docker Desktop, which uses WSL.

  • @cyberbashir5416
    @cyberbashir5416 ปีที่แล้ว +2

    so cool tutorial

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

      Glad you like it. :)

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

    docker: unknown server OS: . hmmmm

    • @BlaizeTech
      @BlaizeTech  22 วันที่ผ่านมา

      What were you trying to run this as?

  • @manuelmartin6132
    @manuelmartin6132 21 วันที่ผ่านมา

    The emulator state is always BOOTING

    • @BlaizeTech
      @BlaizeTech  21 วันที่ผ่านมา +1

      Always booting... It may be incompatible. I have not tried tunning this recently.

    • @manuelmartin6132
      @manuelmartin6132 20 วันที่ผ่านมา

      @@BlaizeTech Thank you very much for your answer. Do you know where I could find the log file? I see in the issues of Github people reference it but I don't know where to find it.

    • @BlaizeTech
      @BlaizeTech  20 วันที่ผ่านมา +1

      @@manuelmartin6132 On Android, it's not simple. You'd need to use adb to get the syslog etc.
      stackoverflow.com/questions/32240120/android-system-log-file-location

  • @McCarvalho
    @McCarvalho 5 หลายเดือนก่อน +1

    Garbage

    • @BlaizeTech
      @BlaizeTech  5 หลายเดือนก่อน +1

      "Limited usefulness" is how I'd describe it. :D