[GH-ISSUE #164] Add feature to log in #592

Open
opened 2026-03-13 22:02:57 +03:00 by kerem · 36 comments
Owner

Originally created by @mv-debug on GitHub (Oct 30, 2020).
Original GitHub issue: https://github.com/alexal1/Insomniac/issues/164

I use your code within a simulated android environment in docker. It could up automatically till the point of log in in the app. For CD purpose this feature will be nice to automatic log in(also handle multiple accounts in the app make sense).
If you want I could create the Dockerfile for this feature.

Originally created by @mv-debug on GitHub (Oct 30, 2020). Original GitHub issue: https://github.com/alexal1/Insomniac/issues/164 I use your code within a simulated android environment in docker. It could up automatically till the point of log in in the app. For CD purpose this feature will be nice to automatic log in(also handle multiple accounts in the app make sense). If you want I could create the Dockerfile for this feature.
Author
Owner

@markbookk commented on GitHub (Oct 30, 2020):

What simulated android environment do you have?

<!-- gh-comment-id:719720020 --> @markbookk commented on GitHub (Oct 30, 2020): What simulated android environment do you have?
Author
Owner

@mv-debug commented on GitHub (Oct 31, 2020):

What simulated android environment do you have?

You can use different devices and different os versions. I used this docker image as a base image: https://github.com/budtmo/docker-android.
It worked like a charm on an older laptop with 4 cores and 8gb ram with two android container (for two accounts).

<!-- gh-comment-id:719905619 --> @mv-debug commented on GitHub (Oct 31, 2020): > What simulated android environment do you have? You can use different devices and different os versions. I used this docker image as a base image: https://github.com/budtmo/docker-android. It worked like a charm on an older laptop with 4 cores and 8gb ram with **two** android container (for two accounts).
Author
Owner

@markbookk commented on GitHub (Nov 2, 2020):

Thanks for this resource, it looks awesome! I will give it a try.

<!-- gh-comment-id:720189250 --> @markbookk commented on GitHub (Nov 2, 2020): Thanks for this resource, it looks awesome! I will give it a try.
Author
Owner

@mv-debug commented on GitHub (Nov 2, 2020):

@alexal1 What do you think about the idea to deploy this framework in docker with a ready to go android setup?

<!-- gh-comment-id:720291205 --> @mv-debug commented on GitHub (Nov 2, 2020): @alexal1 What do you think about the idea to deploy this framework in docker with a ready to go android setup?
Author
Owner

@mv-debug commented on GitHub (Nov 4, 2020):

Thanks for this resource, it looks awesome! I will give it a try.

Do give it a try?

<!-- gh-comment-id:721718262 --> @mv-debug commented on GitHub (Nov 4, 2020): > Thanks for this resource, it looks awesome! I will give it a try. Do give it a try?
Author
Owner

@markbookk commented on GitHub (Nov 9, 2020):

I just tried it and it looks like it is working but the emulator doesn't have Google Play Store... What did you use to download Instagram app? Also, do you have Discord? I am not sure if we should keep talking about this here as it not the main issue.

<!-- gh-comment-id:723742196 --> @markbookk commented on GitHub (Nov 9, 2020): I just tried it and it looks like it is working but the emulator doesn't have Google Play Store... What did you use to download Instagram app? Also, do you have Discord? I am not sure if we should keep talking about this here as it not the main issue.
Author
Owner

@future2back commented on GitHub (Nov 9, 2020):

@mv-debug Could Could you give more information on how to make it work please?

@markbookk thanks for trying it, when its posible i will give a try! Sharing content here is a good way to everyone learn about it 👍

<!-- gh-comment-id:723747008 --> @future2back commented on GitHub (Nov 9, 2020): @mv-debug Could Could you give more information on how to make it work please? @markbookk thanks for trying it, when its posible i will give a try! Sharing content here is a good way to everyone learn about it 👍
Author
Owner

@mv-debug commented on GitHub (Nov 9, 2020):

I just tried it and it looks like it is working but the emulator doesn't have Google Play Store... What did you use to download Instagram app? Also, do you have Discord? I am not sure if we should keep talking about this here as it not the main issue.

You could use adb to install an app. And you could download apps on some free platforms. Is it allowed to name it here, I will try: https://www.apkmirror.com/apk/instagram/instagram-instagram/instagram-instagram-139-0-0-33-121-release/instagram-139-0-0-33-121-12-android-apk-download/

It is important to use the x86 architecture - if you use docker on amd64 or x86 processor.

I do not have discord, sorry.

<!-- gh-comment-id:723936204 --> @mv-debug commented on GitHub (Nov 9, 2020): > I just tried it and it looks like it is working but the emulator doesn't have Google Play Store... What did you use to download Instagram app? Also, do you have Discord? I am not sure if we should keep talking about this here as it not the main issue. You could use adb to install an app. And you could download apps on some free platforms. Is it allowed to name it here, I will try: https://www.apkmirror.com/apk/instagram/instagram-instagram/instagram-instagram-139-0-0-33-121-release/instagram-139-0-0-33-121-12-android-apk-download/ It is important to use the x86 architecture - if you use docker on amd64 or x86 processor. I do not have discord, sorry.
Author
Owner

@mv-debug commented on GitHub (Nov 9, 2020):

@mv-debug Could Could you give more information on how to make it work please?

@markbookk thanks for trying it, when its posible i will give a try! Sharing content here is a good way to everyone learn about it +1

I could write down the steps here - if it okay for you.

<!-- gh-comment-id:723936481 --> @mv-debug commented on GitHub (Nov 9, 2020): > @mv-debug Could Could you give more information on how to make it work please? > > @markbookk thanks for trying it, when its posible i will give a try! Sharing content here is a good way to everyone learn about it +1 I could write down the steps here - if it okay for you.
Author
Owner

@mv-debug commented on GitHub (Nov 9, 2020):

How to:

  1. install docker and adb (https://docs.docker.com/get-docker/, https://developer.android.com/studio/command-line/adb)
  2. Run a container with e.g. docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1
  3. Download Instagram (https://www.apkmirror.com/apk/instagram/instagram-instagram/instagram-instagram-139-0-0-33-121-release/instagram-139-0-0-33-121-12-android-apk-download/) app and install via adb install path_to_apk
  4. Log in manually and also search one time to access the permission pop up. These step have to be done manually and these have to be automated - if implemented the whole execution of the remote handling could be done in a cloud and in continuous deployment

I could also provide a video if you are interested.

<!-- gh-comment-id:723939242 --> @mv-debug commented on GitHub (Nov 9, 2020): How to: 1. install docker and adb (**https://docs.docker.com/get-docker/**, **https://developer.android.com/studio/command-line/adb**) 2. Run a container with e.g. **docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1** 3. Download Instagram (**https://www.apkmirror.com/apk/instagram/instagram-instagram/instagram-instagram-139-0-0-33-121-release/instagram-139-0-0-33-121-12-android-apk-download/**) app and install via **adb install path_to_apk** 4. Log in manually and also search one time to access the permission pop up. These step have to be done manually and these have to be automated - if implemented the whole execution of the remote handling could be done in a cloud and in continuous deployment I could also provide a video if you are interested.
Author
Owner

@markbookk commented on GitHub (Nov 9, 2020):

I just tried it and it looks like it is working but the emulator doesn't have Google Play Store... What did you use to download Instagram app? Also, do you have Discord? I am not sure if we should keep talking about this here as it not the main issue.

You could use adb to install an app. And you could download apps on some free platforms. Is it allowed to name it here, I will try: https://www.apkmirror.com/apk/instagram/instagram-instagram/instagram-instagram-139-0-0-33-121-release/instagram-139-0-0-33-121-12-android-apk-download/

It is important to use the x86 architecture - if you use docker on amd64 or x86 processor.

I do not have discord, sorry.

Cool, thanks! I will give it a try and let you know if it worked. I totally forgot I could add the apps via adb.

<!-- gh-comment-id:723964603 --> @markbookk commented on GitHub (Nov 9, 2020): > > I just tried it and it looks like it is working but the emulator doesn't have Google Play Store... What did you use to download Instagram app? Also, do you have Discord? I am not sure if we should keep talking about this here as it not the main issue. > > You could use adb to install an app. And you could download apps on some free platforms. Is it allowed to name it here, I will try: https://www.apkmirror.com/apk/instagram/instagram-instagram/instagram-instagram-139-0-0-33-121-release/instagram-139-0-0-33-121-12-android-apk-download/ > > It is important to use the x86 architecture - if you use docker on amd64 or x86 processor. > > I do not have discord, sorry. Cool, thanks! I will give it a try and let you know if it worked. I totally forgot I could add the apps via adb.
Author
Owner

@future2back commented on GitHub (Nov 9, 2020):

@mv-debug thanks, What OS are you using to run it?

<!-- gh-comment-id:724066069 --> @future2back commented on GitHub (Nov 9, 2020): @mv-debug thanks, What OS are you using to run it?
Author
Owner

@mv-debug commented on GitHub (Nov 9, 2020):

@mv-debug thanks, What OS are you using to run it?

Hey, I use linux only for development - it is the better platform. But it should also work on windows. If you have got a problem with mac os or windows see: https://github.com/budtmo/docker-android#quick-start

<!-- gh-comment-id:724222160 --> @mv-debug commented on GitHub (Nov 9, 2020): > @mv-debug thanks, What OS are you using to run it? Hey, I use linux only for development - it is the better platform. But it should also work on windows. If you have got a problem with mac os or windows see: https://github.com/budtmo/docker-android#quick-start
Author
Owner

@markbookk commented on GitHub (Nov 9, 2020):

@mv-debug thanks for the help! I used adb install and it worked.

@future2back I also use Linux (Ubuntu) and I can also vouch that it works good.

<!-- gh-comment-id:724225901 --> @markbookk commented on GitHub (Nov 9, 2020): @mv-debug thanks for the help! I used **adb install** and it worked. @future2back I also use Linux (Ubuntu) and I can also vouch that it works good.
Author
Owner

@mv-debug commented on GitHub (Nov 9, 2020):

@mv-debug thanks for the help! I used adb install and it worked.

@future2back I also use Linux (Ubuntu) and I can also vouch that it works good.

I tested it also on a ubuntu machine with 16 cores, with that setup you can run multiple instances of the android simulation (I only test 4 at once). It works like a charm. But it will be nice to implement the login feature.

<!-- gh-comment-id:724231906 --> @mv-debug commented on GitHub (Nov 9, 2020): > @mv-debug thanks for the help! I used **adb install** and it worked. > > @future2back I also use Linux (Ubuntu) and I can also vouch that it works good. I tested it also on a ubuntu machine with 16 cores, with that setup you can run multiple instances of the android simulation (I only test 4 at once). It works like a charm. But it will be nice to implement the login feature.
Author
Owner

@markbookk commented on GitHub (Nov 9, 2020):

@mv-debug Nice! Do you use cloud or local hosting?

<!-- gh-comment-id:724256227 --> @markbookk commented on GitHub (Nov 9, 2020): @mv-debug Nice! Do you use cloud or local hosting?
Author
Owner

@mv-debug commented on GitHub (Nov 10, 2020):

@mv-debug Nice! Do you use cloud or local hosting?

I tried in a cloud, but you have got manual steps for setup the environment. At the moment I have got a gitlab-runner on my local machine and let it run every hour. Works like charm.

<!-- gh-comment-id:724552762 --> @mv-debug commented on GitHub (Nov 10, 2020): > @mv-debug Nice! Do you use cloud or local hosting? I tried in a cloud, but you have got manual steps for setup the environment. At the moment I have got a gitlab-runner on my local machine and let it run every hour. Works like charm.
Author
Owner

@future2back commented on GitHub (Nov 10, 2020):

@mv-debug thanks, i will try it here on ubuntu and let you know

<!-- gh-comment-id:724606716 --> @future2back commented on GitHub (Nov 10, 2020): @mv-debug thanks, i will try it here on ubuntu and let you know
Author
Owner

@mv-debug commented on GitHub (Nov 10, 2020):

I think I am going to write an script to setup the environment with uiautomator2.

<!-- gh-comment-id:724608542 --> @mv-debug commented on GitHub (Nov 10, 2020): I think I am going to write an script to setup the environment with uiautomator2.
Author
Owner

@future2back commented on GitHub (Nov 10, 2020):

How to:

1. install docker and adb (**https://docs.docker.com/get-docker/**, **https://developer.android.com/studio/command-line/adb**)

2. Run a container with e.g.  **docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1**

3. Download Instagram (**https://www.apkmirror.com/apk/instagram/instagram-instagram/instagram-instagram-139-0-0-33-121-release/instagram-139-0-0-33-121-12-android-apk-download/**) app and install via **adb install path_to_apk**

4. Log in manually and also search one time to access the permission pop up. These step have to be done manually and these have to be automated - if implemented the whole execution of the remote handling could be done in a cloud and in continuous deployment

I could also provide a video if you are interested.

Hello @mv-debug and @markbookk after installing docker (step 1) and added my user to docker group , followed step 2 , after acessing http://myip:6080 i can access it and see a page that has a whale Android Docker, could you describe the steps i should follow to make it works? I m new on Docker, i m sorry!

Thanks a lot.

<!-- gh-comment-id:724761747 --> @future2back commented on GitHub (Nov 10, 2020): > > > How to: > > 1. install docker and adb (**https://docs.docker.com/get-docker/**, **https://developer.android.com/studio/command-line/adb**) > > 2. Run a container with e.g. **docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1** > > 3. Download Instagram (**https://www.apkmirror.com/apk/instagram/instagram-instagram/instagram-instagram-139-0-0-33-121-release/instagram-139-0-0-33-121-12-android-apk-download/**) app and install via **adb install path_to_apk** > > 4. Log in manually and also search one time to access the permission pop up. These step have to be done manually and these have to be automated - if implemented the whole execution of the remote handling could be done in a cloud and in continuous deployment > > > I could also provide a video if you are interested. Hello @mv-debug and @markbookk after installing docker (step 1) and added my user to docker group , followed step 2 , after acessing http://myip:6080 i can access it and see a page that has a whale Android Docker, could you describe the steps i should follow to make it works? I m new on Docker, i m sorry! Thanks a lot.
Author
Owner

@mv-debug commented on GitHub (Nov 11, 2020):

How to:

1. install docker and adb (**https://docs.docker.com/get-docker/**, **https://developer.android.com/studio/command-line/adb**)

2. Run a container with e.g.  **docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1**

3. Download Instagram (**https://www.apkmirror.com/apk/instagram/instagram-instagram/instagram-instagram-139-0-0-33-121-release/instagram-139-0-0-33-121-12-android-apk-download/**) app and install via **adb install path_to_apk**

4. Log in manually and also search one time to access the permission pop up. These step have to be done manually and these have to be automated - if implemented the whole execution of the remote handling could be done in a cloud and in continuous deployment

I could also provide a video if you are interested.

Hello @mv-debug and @markbookk after installing docker (step 1) and added my user to docker group , followed step 2 , after acessing http://myip:6080 i can access it and see a page that has a whale Android Docker, could you describe the steps i should follow to make it works? I m new on Docker, i m sorry!

Thanks a lot.

Try in a console adb devices and check if you see something like this emulator-5554. If yes, you could install the downloaded app via adb install path_to_apk. The use the browser to log in. That's all.

<!-- gh-comment-id:725235528 --> @mv-debug commented on GitHub (Nov 11, 2020): > > How to: > > ``` > > 1. install docker and adb (**https://docs.docker.com/get-docker/**, **https://developer.android.com/studio/command-line/adb**) > > > > 2. Run a container with e.g. **docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1** > > > > 3. Download Instagram (**https://www.apkmirror.com/apk/instagram/instagram-instagram/instagram-instagram-139-0-0-33-121-release/instagram-139-0-0-33-121-12-android-apk-download/**) app and install via **adb install path_to_apk** > > > > 4. Log in manually and also search one time to access the permission pop up. These step have to be done manually and these have to be automated - if implemented the whole execution of the remote handling could be done in a cloud and in continuous deployment > > ``` > > > > > > I could also provide a video if you are interested. > > Hello @mv-debug and @markbookk after installing docker (step 1) and added my user to docker group , followed step 2 , after acessing http://myip:6080 i can access it and see a page that has a whale Android Docker, could you describe the steps i should follow to make it works? I m new on Docker, i m sorry! > > Thanks a lot. Try in a console **adb devices** and check if you see something like this __emulator-5554__. If yes, you could install the downloaded app via **adb install path_to_apk**. The use the browser to log in. That's all.
Author
Owner

@future2back commented on GitHub (Nov 11, 2020):

How to:

1. install docker and adb (**https://docs.docker.com/get-docker/**, **https://developer.android.com/studio/command-line/adb**)

2. Run a container with e.g.  **docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1**

3. Download Instagram (**https://www.apkmirror.com/apk/instagram/instagram-instagram/instagram-instagram-139-0-0-33-121-release/instagram-139-0-0-33-121-12-android-apk-download/**) app and install via **adb install path_to_apk**

4. Log in manually and also search one time to access the permission pop up. These step have to be done manually and these have to be automated - if implemented the whole execution of the remote handling could be done in a cloud and in continuous deployment

I could also provide a video if you are interested.

Hello @mv-debug and @markbookk after installing docker (step 1) and added my user to docker group , followed step 2 , after acessing http://myip:6080 i can access it and see a page that has a whale Android Docker, could you describe the steps i should follow to make it works? I m new on Docker, i m sorry!
Thanks a lot.

Try in a console adb devices and check if you see something like this emulator-5554. If yes, you could install the downloaded app via adb install path_to_apk. The use the browser to log in. That's all.

Hey @mv-debug thanks for replying, there is no emulator listed on my adb, i runned docker with the same line you listed on step 2! Is it ok?

Thanks

<!-- gh-comment-id:725444046 --> @future2back commented on GitHub (Nov 11, 2020): > > > > > How to: > > > ``` > > > 1. install docker and adb (**https://docs.docker.com/get-docker/**, **https://developer.android.com/studio/command-line/adb**) > > > > > > 2. Run a container with e.g. **docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1** > > > > > > 3. Download Instagram (**https://www.apkmirror.com/apk/instagram/instagram-instagram/instagram-instagram-139-0-0-33-121-release/instagram-139-0-0-33-121-12-android-apk-download/**) app and install via **adb install path_to_apk** > > > > > > 4. Log in manually and also search one time to access the permission pop up. These step have to be done manually and these have to be automated - if implemented the whole execution of the remote handling could be done in a cloud and in continuous deployment > > > ``` > > > > > > > > > I could also provide a video if you are interested. > > > > > > Hello @mv-debug and @markbookk after installing docker (step 1) and added my user to docker group , followed step 2 , after acessing http://myip:6080 i can access it and see a page that has a whale Android Docker, could you describe the steps i should follow to make it works? I m new on Docker, i m sorry! > > Thanks a lot. > > Try in a console **adb devices** and check if you see something like this **emulator-5554**. If yes, you could install the downloaded app via **adb install path_to_apk**. The use the browser to log in. That's all. Hey @mv-debug thanks for replying, there is no emulator listed on my adb, i runned docker with the same line you listed on step 2! Is it ok? Thanks
Author
Owner

@markbookk commented on GitHub (Nov 11, 2020):

@future2back are you using virtualization for the host OS of Docker?

<!-- gh-comment-id:725467728 --> @markbookk commented on GitHub (Nov 11, 2020): @future2back are you using virtualization for the host OS of Docker?
Author
Owner

@future2back commented on GitHub (Nov 11, 2020):

@future2back are you using virtualization for the host OS of Docker?

No, I m using ubuntu on a physical computer to run docker.... I tried rebooting my computer, after it

i had to remove --name android-container from this line:

docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1

so i started docker image with this line:

docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" budtmo/docker-android-x86-8.1

is it ok? I m sorry, thanks for for taking your time.

<!-- gh-comment-id:725480668 --> @future2back commented on GitHub (Nov 11, 2020): > > > @future2back are you using virtualization for the host OS of Docker? No, I m using ubuntu on a physical computer to run docker.... I tried rebooting my computer, after it i had to remove `--name android-container` from this line: `docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1` so i started docker image with this line: ` docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" budtmo/docker-android-x86-8.1 ` is it ok? I m sorry, thanks for for taking your time.
Author
Owner

@markbookk commented on GitHub (Nov 11, 2020):

docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1

I use this line and it works for me.

Why do you say you had to remove --name android-container? Any error occurred or anything pops up that you can share?

<!-- gh-comment-id:725483777 --> @markbookk commented on GitHub (Nov 11, 2020): > `docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1` I use this line and it works for me. Why do you say you had to remove `--name android-container`? Any error occurred or anything pops up that you can share?
Author
Owner

@future2back commented on GitHub (Nov 11, 2020):

docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1

I use this line and it works for me.

Why do you say you had to remove --name android-container? Any error occurred or anything pops up that you can share?

heyy @markbookk i had no problem using this line at first time, as the emulator did not appear in the list of devices i restarted the computer, so, do i have to open it again? then if i try

docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1

i get this error message:

docker: Error response from daemon: Conflict. The container name "/android-container" is already in use by container "e8c40ee99723e797c3e36b1cebc3fa330705de25bca47fff153b8a3032eacfd8". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.

thats why i removed --name android-container to "reopen" the image. So i could reopen it but still not appear in the list of devices when i use adb devices

<!-- gh-comment-id:725489166 --> @future2back commented on GitHub (Nov 11, 2020): > > `docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1` > > I use this line and it works for me. > > Why do you say you had to remove `--name android-container`? Any error occurred or anything pops up that you can share? heyy @markbookk i had no problem using this line at first time, as the emulator did not appear in the list of devices i restarted the computer, so, do i have to open it again? then if i try `docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1` i get this error message: ``` docker: Error response from daemon: Conflict. The container name "/android-container" is already in use by container "e8c40ee99723e797c3e36b1cebc3fa330705de25bca47fff153b8a3032eacfd8". You have to remove (or rename) that container to be able to reuse that name. See 'docker run --help'. ``` thats why i removed `--name android-container` to "reopen" the image. So i could reopen it but still not appear in the list of devices when i use adb devices
Author
Owner

@markbookk commented on GitHub (Nov 11, 2020):

That error means that you already have a container running. You can do docker ps -a to list all containers (not just the ones that are running). More information here: https://docs.docker.com/engine/reference/commandline/ps/

You don't have to create a new docker container every time. You just need to start the container you already created with docker start {name} or in your case docker start android-container.

In regards to the device not showing on adb devices, I am not sure what the problem may be but it doesn't seem to be a problem with the "docker-android" as it works fine for me. I think your docker container isn't fully running, as you said you only see the "whale android docker" page and you are supposed to be seeing the android emulator.

<!-- gh-comment-id:725540918 --> @markbookk commented on GitHub (Nov 11, 2020): That error means that you already have a container running. You can do `docker ps -a` to list all containers (not just the ones that are running). More information here: https://docs.docker.com/engine/reference/commandline/ps/ You don't have to create a new docker container every time. You just need to start the container you already created with `docker start {name}` or in your case `docker start android-container`. In regards to the device not showing on `adb devices`, I am not sure what the problem may be but it doesn't seem to be a problem with the "docker-android" as it works fine for me. I think your docker container isn't fully running, as you said you only see the "whale android docker" page and you are supposed to be seeing the android emulator.
Author
Owner

@mv-debug commented on GitHub (Nov 11, 2020):

That error means that you already have a container running. You can do docker ps -a to list all containers (not just the ones that are running). More information here: https://docs.docker.com/engine/reference/commandline/ps/

You don't have to create a new docker container every time. You just need to start the container you already created with docker start {name} or in your case docker start android-container.

In regards to the device not showing on adb devices, I am not sure what the problem may be but it doesn't seem to be a problem with the "docker-android" as it works fine for me. I think your docker container isn't fully running, as you said you only see the "whale android docker" page and you are supposed to be seeing the android emulator.

@future2back Do you see an device under localhost:6080? Something like this.
Screenshot_20201111-191718

If you Plug in an real device to the pc, do you see this one via adb? Maybe some udev rules cause problems. Try to use the original ubuntu package (sudo apt install adb), within this package the correct udev rules are rolled out..

<!-- gh-comment-id:725581509 --> @mv-debug commented on GitHub (Nov 11, 2020): > That error means that you already have a container running. You can do `docker ps -a` to list all containers (not just the ones that are running). More information here: https://docs.docker.com/engine/reference/commandline/ps/ > > You don't have to create a new docker container every time. You just need to start the container you already created with `docker start {name}` or in your case `docker start android-container`. > > In regards to the device not showing on `adb devices`, I am not sure what the problem may be but it doesn't seem to be a problem with the "docker-android" as it works fine for me. I think your docker container isn't fully running, as you said you only see the "whale android docker" page and you are supposed to be seeing the android emulator. @future2back Do you see an device under **localhost:6080**? Something like this. ![Screenshot_20201111-191718](https://user-images.githubusercontent.com/73694601/98848878-a2ab8500-2452-11eb-83c8-23c08383841e.jpg) If you Plug in an real device to the pc, do you see this one via adb? Maybe some udev rules cause problems. Try to use the original ubuntu package (sudo apt install adb), within this package the correct udev rules are rolled out..
Author
Owner

@future2back commented on GitHub (Nov 11, 2020):

That error means that you already have a container running. You can do docker ps -a to list all containers (not just the ones that are running). More information here: https://docs.docker.com/engine/reference/commandline/ps/

You don't have to create a new docker container every time. You just need to start the container you already created with docker start {name} or in your case docker start android-container.

In regards to the device not showing on adb devices, I am not sure what the problem may be but it doesn't seem to be a problem with the "docker-android" as it works fine for me. I think your docker container isn't fully running, as you said you only see the "whale android docker" page and you are supposed to be seeing the android emulator.

Thanks for explain me that!

That error means that you already have a container running. You can do docker ps -a to list all containers (not just the ones that are running). More information here: https://docs.docker.com/engine/reference/commandline/ps/
You don't have to create a new docker container every time. You just need to start the container you already created with docker start {name} or in your case docker start android-container.
In regards to the device not showing on adb devices, I am not sure what the problem may be but it doesn't seem to be a problem with the "docker-android" as it works fine for me. I think your docker container isn't fully running, as you said you only see the "whale android docker" page and you are supposed to be seeing the android emulator.

@future2back Do you see an device under localhost:6080? Something like this.
Screenshot_20201111-191718

If you Plug in an real device to the pc, do you see this one via adb? Maybe some udev rules cause problems. Try to use the original ubuntu package (sudo apt install adb), within this package the correct udev rules are rolled out..

dock

There is no android phone like yours. Thats why i asked if the line on step 2 is correct.

If i right click on it:
dock2

Yes i can see device to the pc on using adb.

Any idea? Thanks @markbookk

<!-- gh-comment-id:725593456 --> @future2back commented on GitHub (Nov 11, 2020): > > > That error means that you already have a container running. You can do `docker ps -a` to list all containers (not just the ones that are running). More information here: https://docs.docker.com/engine/reference/commandline/ps/ > > You don't have to create a new docker container every time. You just need to start the container you already created with `docker start {name}` or in your case `docker start android-container`. > > In regards to the device not showing on `adb devices`, I am not sure what the problem may be but it doesn't seem to be a problem with the "docker-android" as it works fine for me. I think your docker container isn't fully running, as you said you only see the "whale android docker" page and you are supposed to be seeing the android emulator. Thanks for explain me that! > > > > That error means that you already have a container running. You can do `docker ps -a` to list all containers (not just the ones that are running). More information here: https://docs.docker.com/engine/reference/commandline/ps/ > > You don't have to create a new docker container every time. You just need to start the container you already created with `docker start {name}` or in your case `docker start android-container`. > > In regards to the device not showing on `adb devices`, I am not sure what the problem may be but it doesn't seem to be a problem with the "docker-android" as it works fine for me. I think your docker container isn't fully running, as you said you only see the "whale android docker" page and you are supposed to be seeing the android emulator. > > @future2back Do you see an device under **localhost:6080**? Something like this. > ![Screenshot_20201111-191718](https://user-images.githubusercontent.com/73694601/98848878-a2ab8500-2452-11eb-83c8-23c08383841e.jpg) > > If you Plug in an real device to the pc, do you see this one via adb? Maybe some udev rules cause problems. Try to use the original ubuntu package (sudo apt install adb), within this package the correct udev rules are rolled out.. ![dock](https://user-images.githubusercontent.com/74167741/98850666-f3e35680-2409-11eb-8587-6033bedaf356.png) There is no android phone like yours. Thats why i asked if the line on step 2 is correct. If i right click on it: <img width="740" alt="dock2" src="https://user-images.githubusercontent.com/74167741/98851186-c519b000-240a-11eb-88e1-b2a791f5736d.png"> Yes i can see device to the pc on using adb. Any idea? Thanks @markbookk
Author
Owner

@mv-debug commented on GitHub (Nov 11, 2020):

That error means that you already have a container running. You can do docker ps -a to list all containers (not just the ones that are running). More information here: https://docs.docker.com/engine/reference/commandline/ps/
You don't have to create a new docker container every time. You just need to start the container you already created with docker start {name} or in your case docker start android-container.
In regards to the device not showing on adb devices, I am not sure what the problem may be but it doesn't seem to be a problem with the "docker-android" as it works fine for me. I think your docker container isn't fully running, as you said you only see the "whale android docker" page and you are supposed to be seeing the android emulator.

Thanks for explain me that!

That error means that you already have a container running. You can do docker ps -a to list all containers (not just the ones that are running). More information here: https://docs.docker.com/engine/reference/commandline/ps/
You don't have to create a new docker container every time. You just need to start the container you already created with docker start {name} or in your case docker start android-container.
In regards to the device not showing on adb devices, I am not sure what the problem may be but it doesn't seem to be a problem with the "docker-android" as it works fine for me. I think your docker container isn't fully running, as you said you only see the "whale android docker" page and you are supposed to be seeing the android emulator.

@future2back Do you see an device under localhost:6080? Something like this.
Screenshot_20201111-191718
If you Plug in an real device to the pc, do you see this one via adb? Maybe some udev rules cause problems. Try to use the original ubuntu package (sudo apt install adb), within this package the correct udev rules are rolled out..

dock

There is no android phone like yours. Thats why i asked if the line on step 2 is correct.

If i right click on it:
dock2

Yes i can see device to the pc on using adb.

Any idea? Thanks @markbookk

What kind of pc or laptop do you have? Sometime a start of an stopped container end in your situation. But a fresh container looks like my pic. Maybe some virtualization setting are not enabled or you do not have enough power for emulation.

<!-- gh-comment-id:725621541 --> @mv-debug commented on GitHub (Nov 11, 2020): > > That error means that you already have a container running. You can do `docker ps -a` to list all containers (not just the ones that are running). More information here: https://docs.docker.com/engine/reference/commandline/ps/ > > You don't have to create a new docker container every time. You just need to start the container you already created with `docker start {name}` or in your case `docker start android-container`. > > In regards to the device not showing on `adb devices`, I am not sure what the problem may be but it doesn't seem to be a problem with the "docker-android" as it works fine for me. I think your docker container isn't fully running, as you said you only see the "whale android docker" page and you are supposed to be seeing the android emulator. > > Thanks for explain me that! > > > > That error means that you already have a container running. You can do `docker ps -a` to list all containers (not just the ones that are running). More information here: https://docs.docker.com/engine/reference/commandline/ps/ > > > You don't have to create a new docker container every time. You just need to start the container you already created with `docker start {name}` or in your case `docker start android-container`. > > > In regards to the device not showing on `adb devices`, I am not sure what the problem may be but it doesn't seem to be a problem with the "docker-android" as it works fine for me. I think your docker container isn't fully running, as you said you only see the "whale android docker" page and you are supposed to be seeing the android emulator. > > > > > > @future2back Do you see an device under **localhost:6080**? Something like this. > > ![Screenshot_20201111-191718](https://user-images.githubusercontent.com/73694601/98848878-a2ab8500-2452-11eb-83c8-23c08383841e.jpg) > > If you Plug in an real device to the pc, do you see this one via adb? Maybe some udev rules cause problems. Try to use the original ubuntu package (sudo apt install adb), within this package the correct udev rules are rolled out.. > > ![dock](https://user-images.githubusercontent.com/74167741/98850666-f3e35680-2409-11eb-8587-6033bedaf356.png) > > There is no android phone like yours. Thats why i asked if the line on step 2 is correct. > > If i right click on it: > <img alt="dock2" width="740" src="https://user-images.githubusercontent.com/74167741/98851186-c519b000-240a-11eb-88e1-b2a791f5736d.png"> > > Yes i can see device to the pc on using adb. > > Any idea? Thanks @markbookk What kind of pc or laptop do you have? Sometime a start of an stopped container end in your situation. But a fresh container looks like my pic. Maybe some virtualization setting are not enabled or you do not have enough power for emulation.
Author
Owner

@future2back commented on GitHub (Nov 11, 2020):

Kernel: 5.4.0-52-generic x86_64 bits: 64 Desktop: Gnome 3.36.4 
           Distro: Ubuntu 20.04.1 LTS (Focal Fossa) 
Machine:   Type: Laptop System: LENOVO product: VIUS3 v: Lenovo IdeaPad S400 serial: <superuser/root required> 
           Mobo: LENOVO  STD SGL serial: <superuser/root required> UEFI [Legacy]: LENOVO 
           date: 02/21/2013 

CPU:  Topology: Dual Core model: Intel Celeron 1007U bits: 64 type: MCP L2 cache: 2048 KiB 
Speed: 798 MHz min/max: 800/1500 MHz Core speeds (MHz): 1: 798 2: 798 
Graphics:  Device-1: Intel 3rd Gen Core processor Graphics driver: i915 v: kernel 

Memory: 1.75 GiB

I m trying it on an old computer, @markbookk is it enought? How can i delete all images and try start again? Is there anyway to show logs of this container to check is there any problem with it?

<!-- gh-comment-id:725629092 --> @future2back commented on GitHub (Nov 11, 2020): ``` Kernel: 5.4.0-52-generic x86_64 bits: 64 Desktop: Gnome 3.36.4 Distro: Ubuntu 20.04.1 LTS (Focal Fossa) Machine: Type: Laptop System: LENOVO product: VIUS3 v: Lenovo IdeaPad S400 serial: <superuser/root required> Mobo: LENOVO STD SGL serial: <superuser/root required> UEFI [Legacy]: LENOVO date: 02/21/2013 CPU: Topology: Dual Core model: Intel Celeron 1007U bits: 64 type: MCP L2 cache: 2048 KiB Speed: 798 MHz min/max: 800/1500 MHz Core speeds (MHz): 1: 798 2: 798 Graphics: Device-1: Intel 3rd Gen Core processor Graphics driver: i915 v: kernel Memory: 1.75 GiB ``` I m trying it on an old computer, @markbookk is it enought? How can i delete all images and try start again? Is there anyway to show logs of this container to check is there any problem with it?
Author
Owner

@mv-debug commented on GitHub (Nov 12, 2020):

Kernel: 5.4.0-52-generic x86_64 bits: 64 Desktop: Gnome 3.36.4 
           Distro: Ubuntu 20.04.1 LTS (Focal Fossa) 
Machine:   Type: Laptop System: LENOVO product: VIUS3 v: Lenovo IdeaPad S400 serial: <superuser/root required> 
           Mobo: LENOVO  STD SGL serial: <superuser/root required> UEFI [Legacy]: LENOVO 
           date: 02/21/2013 

CPU:  Topology: Dual Core model: Intel Celeron 1007U bits: 64 type: MCP L2 cache: 2048 KiB 
Speed: 798 MHz min/max: 800/1500 MHz Core speeds (MHz): 1: 798 2: 798 
Graphics:  Device-1: Intel 3rd Gen Core processor Graphics driver: i915 v: kernel 

Memory: 1.75 GiB

I m trying it on an old computer, @markbookk is it enought? How can i delete all images and try start again? Is there anyway to show logs of this container to check is there any problem with it?

I thing this is simply not enough power.

<!-- gh-comment-id:726058928 --> @mv-debug commented on GitHub (Nov 12, 2020): > ``` > Kernel: 5.4.0-52-generic x86_64 bits: 64 Desktop: Gnome 3.36.4 > Distro: Ubuntu 20.04.1 LTS (Focal Fossa) > Machine: Type: Laptop System: LENOVO product: VIUS3 v: Lenovo IdeaPad S400 serial: <superuser/root required> > Mobo: LENOVO STD SGL serial: <superuser/root required> UEFI [Legacy]: LENOVO > date: 02/21/2013 > > CPU: Topology: Dual Core model: Intel Celeron 1007U bits: 64 type: MCP L2 cache: 2048 KiB > Speed: 798 MHz min/max: 800/1500 MHz Core speeds (MHz): 1: 798 2: 798 > Graphics: Device-1: Intel 3rd Gen Core processor Graphics driver: i915 v: kernel > > Memory: 1.75 GiB > ``` > > I m trying it on an old computer, @markbookk is it enought? How can i delete all images and try start again? Is there anyway to show logs of this container to check is there any problem with it? I thing this is simply not enough power.
Author
Owner

@markbookk commented on GitHub (Nov 12, 2020):

@future2back I think it doesn't have to do with the resources of your computer. If it were the resources, I think it would at least start up and be very slow or give you an error message accordingly. I think it has to do with the virtualization. I suggest looking up online how you can enable virtualization in your BIOS and try that. If that isn't the case, honestly I am not sure how I could help you.

To delete a container or any similar docker related commands, I suggest you just read the same website I had sent previously and search for what you want there. Example, you mentioned you wanted to remove a container so that would be https://docs.docker.com/engine/reference/commandline/rm/ .

<!-- gh-comment-id:726156181 --> @markbookk commented on GitHub (Nov 12, 2020): @future2back I think it doesn't have to do with the resources of your computer. If it were the resources, I think it would at least start up and be very slow or give you an error message accordingly. I think it has to do with the virtualization. I suggest looking up online how you can enable virtualization in your BIOS and try that. If that isn't the case, honestly I am not sure how I could help you. To delete a container or any similar docker related commands, I suggest you just read the same website I had sent previously and search for what you want there. Example, you mentioned you wanted to remove a container so that would be https://docs.docker.com/engine/reference/commandline/rm/ .
Author
Owner

@mv-debug commented on GitHub (Nov 12, 2020):

@future2back Maybe you take a look at this site https://2nwiki.2n.cz/pages/viewpage.action?pageId=75202968

<!-- gh-comment-id:726249253 --> @mv-debug commented on GitHub (Nov 12, 2020): @future2back Maybe you take a look at this site https://2nwiki.2n.cz/pages/viewpage.action?pageId=75202968
Author
Owner

@future2back commented on GitHub (Nov 12, 2020):

@mv-debug @markbookk thanks! You both are correct. After enabling virtualization in my BIOS i m able to see the android phone, but seems like that this computer dont have enought resources to run it.
as you can see:

dock3

I will try on better computer and let you know! Do you think that is it possible on Macbook or Windows?

For creating different containers do i have to change ports and name? Is there any matrix to this ports or any can be used?
on this line for example:

docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1

have to change:

-p 6080:6080 What ports can be used here?

--name android-container Here any name can be used

then start the container by

docker start {name}

By the way, what is the gain using the docker instead of an emulator? I see that container resources should be lighter then emulators, but is it very significant? For example, i can run 4 emulators at same time using Windows and ldplayer, memu or any kind of android emulator, but if i start the 5 one my computer get unworkable. If i use the same computer resources but on Ubuntu with containers, could I have more emulators then 4? If yes, could you say in numbers of devices? What are the other benefits of using Insomniac on a container?

Thank you a lot guys!!!

<!-- gh-comment-id:726361587 --> @future2back commented on GitHub (Nov 12, 2020): @mv-debug @markbookk thanks! You both are correct. After enabling virtualization in my BIOS i m able to see the android phone, but seems like that this computer dont have enought resources to run it. as you can see: <img width="700" alt="dock3" src="https://user-images.githubusercontent.com/74167741/99000436-21a1cb80-24ee-11eb-8224-e3d51351ef00.png"> I will try on better computer and let you know! Do you think that is it possible on Macbook or Windows? For creating different containers do i have to change ports and name? Is there any matrix to this ports or any can be used? on this line for example: `docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1` have to change: `-p 6080:6080` _What ports can be used here?_ `--name android-container` _Here any name can be used_ then start the container by docker start {name} By the way, what is the gain using the docker instead of an emulator? I see that container resources should be lighter then emulators, but is it very significant? For example, i can run 4 emulators at same time using Windows and ldplayer, memu or any kind of android emulator, but if i start the 5 one my computer get unworkable. If i use the same computer resources but on Ubuntu with containers, could I have more emulators then 4? If yes, could you say in numbers of devices? What are the other benefits of using Insomniac on a container? Thank you a lot guys!!!
Author
Owner

@mv-debug commented on GitHub (Nov 14, 2020):

@mv-debug @markbookk thanks! You both are correct. After enabling virtualization in my BIOS i m able to see the android phone, but seems like that this computer dont have enought resources to run it.
as you can see:

dock3

I will try on better computer and let you know! Do you think that is it possible on Macbook or Windows?

For creating different containers do i have to change ports and name? Is there any matrix to this ports or any can be used?
on this line for example:

docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1

have to change:

-p 6080:6080 What ports can be used here?

--name android-container Here any name can be used

then start the container by

docker start {name}

By the way, what is the gain using the docker instead of an emulator? I see that container resources should be lighter then emulators, but is it very significant? For example, i can run 4 emulators at same time using Windows and ldplayer, memu or any kind of android emulator, but if i start the 5 one my computer get unworkable. If i use the same computer resources but on Ubuntu with containers, could I have more emulators then 4? If yes, could you say in numbers of devices? What are the other benefits of using Insomniac on a container?

Thank you a lot guys!!!

It depends on your power of the pc. The advantage is you do not have to install anything - except docker. If the login feature is implemented it can be run everywhere.

<!-- gh-comment-id:727155446 --> @mv-debug commented on GitHub (Nov 14, 2020): > @mv-debug @markbookk thanks! You both are correct. After enabling virtualization in my BIOS i m able to see the android phone, but seems like that this computer dont have enought resources to run it. > as you can see: > > <img alt="dock3" width="700" src="https://user-images.githubusercontent.com/74167741/99000436-21a1cb80-24ee-11eb-8224-e3d51351ef00.png"> > > I will try on better computer and let you know! Do you think that is it possible on Macbook or Windows? > > For creating different containers do i have to change ports and name? Is there any matrix to this ports or any can be used? > on this line for example: > > `docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-8.1` > > have to change: > > `-p 6080:6080` _What ports can be used here?_ > > `--name android-container` _Here any name can be used_ > > then start the container by > > docker start {name} > > By the way, what is the gain using the docker instead of an emulator? I see that container resources should be lighter then emulators, but is it very significant? For example, i can run 4 emulators at same time using Windows and ldplayer, memu or any kind of android emulator, but if i start the 5 one my computer get unworkable. If i use the same computer resources but on Ubuntu with containers, could I have more emulators then 4? If yes, could you say in numbers of devices? What are the other benefits of using Insomniac on a container? > > Thank you a lot guys!!! It depends on your power of the pc. The advantage is you do not have to install anything - except docker. If the login feature is implemented it can be run everywhere.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Insomniac#592
No description provided.