appium / appium-docker-android

Appium Server setup to automate android testing on real devices
https://hub.docker.com/r/appium/
Other
585 stars 228 forks source link

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

Open pramoth57 opened 2 years ago

pramoth57 commented 2 years ago

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

ghost commented 2 years ago

You can directly use docker pull

budtmo commented 2 years ago

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.

weihongliang233 commented 9 months ago

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