Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pramoth57 opened this issue Oct 20, 2021 · 3 comments
Open

Comments

@pramoth57
Copy link

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 pramoth57 changed the title Appium Docker image is not working windows OS Appium Docker image is not working for windows OS Oct 20, 2021
@ghost
Copy link

ghost commented Oct 20, 2021

You can directly use docker pull

@budtmo
Copy link
Member

budtmo commented Jul 13, 2022

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 budtmo changed the title Appium Docker image is not working for windows OS Documentation how to use Appium Docker image on windows OS and OSX Jul 13, 2022
This was referenced Jul 13, 2022
@weihongliang233
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants