appium-docker-android icon indicating copy to clipboard operation
appium-docker-android copied to clipboard

Documentation how to use Appium Docker image on windows OS and OSX

Open pramoth57 opened this issue 4 years ago • 3 comments

Hi Team,

Do we have any workaround for leveraging Appium docker Image for windows OS ? Since docker-machine is deprecated by docker, is there any new approach use the same Appium docker Image without the use of docker-machine.

Thanks in advance for your support

pramoth57 avatar Oct 20 '21 08:10 pramoth57

You can directly use docker pull

ghost avatar Oct 20 '21 23:10 ghost

could someone add in the documentation if someone can use this project without docker-machine on windows OS and OSX? because I do not use windows OS anymore.

budtmo avatar Jul 13 '22 14:07 budtmo

Troubleshooting Tips for Windows OS

Preface:

When utilizing Docker containers on a Windows host, various challenges may arise, particularly when attempting to access host machine resources using adb and Appium. Successfully resolving these challenges often involves utilizing the host.docker.internal hostname.

Tips:

  1. Issues with adb devices:
    • If your Android device is connected to the host machine via USB, and running adb devices within the container returns an empty list, check whether the environment variable ANDROID_ADB_SERVER_ADDRESS is set to host.docker.internal.
  2. Issues connecting to the Appium server:
    • If Appium client code encounters difficulties connecting to the Appium server during testing, ensure that the host in the capabilities section of the client code is set to host.docker.internal.

Outcome:

By implementing the aforementioned measures, I successfully ran the Docker image on a Windows host. Moreover, I was able to connect to my Android device for development using Appium Inspector.

image-20231213034014805

image-20231213034222373

weihongliang233 avatar Dec 12 '23 20:12 weihongliang233