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

Run on the Windows OS #88

Closed
Pramodnp28 opened this issue Oct 3, 2018 · 3 comments
Closed

Run on the Windows OS #88

Pramodnp28 opened this issue Oct 3, 2018 · 3 comments

Comments

@Pramodnp28
Copy link

Hello,
Am completely new to the dockers when am trying to run dockers compose with the following yml file
`version: '2'

services:

Selenium hub

selenium_hub:
image: selenium/hub
ports:
- 4444:4444

Appium Docker Android

appium_android_device:
image: appium/appium
depends_on:
- selenium_hub
privileged: true
volumes:
- /dev/bus/usb:/dev/bus/usb
- ~/.android:/root/.android
environment:
- CONNECT_TO_GRID=true
- SELENIUM_HOST=selenium_hub
# Enable it for msite testing
#- BROWSER_NAME=chrome`

ERROR

ERROR: for appiumrequired_appium_android_device_1 Cannot create container for service appium_android_device: b'Mount denied:\nThe source path "\\dev\\bus\\usb:/dev/bus/usb"\nis not a valid Windows path'

ERROR: for appium_android_device Cannot create container for service appium_android_device: b'Mount denied:\nThe source path "\\dev\\bus\\usb:/dev/bus/usb"\nis not a valid Windows path'
ERROR: Encountered errors while bringing up the project.

Complete log

PS C:\Users\DELL\Desktop\Appium Required> docker-compose up -d
Starting appiumrequired_selenium_hub_1 ... done
Creating appiumrequired_appium_android_device_1 ... error

ERROR: for appiumrequired_appium_android_device_1 Cannot create container for service appium_android_device: b'Mount denied:\nThe source path "\\dev\\bus\\usb:/dev/bus/usb"\nis not a valid Windows path'

ERROR: for appium_android_device Cannot create container for service appium_android_device: b'Mount denied:\nThe source path "\\dev\\bus\\usb:/dev/bus/usb"\nis not a valid Windows path'
ERROR: Encountered errors while bringing up the project.

@budtmo
Copy link
Member

budtmo commented Jan 7, 2019

Hi @Pramodnp28 ,

It is because you use windows OS. you need to ssh your docker-machine first because there is no such path in windows OS. The readme shows how to do it in Mac using docker-machine command, you can try for Windows and let us know how it works. Could you also add it in the readme if you are able to use it?

@budtmo budtmo changed the title Need help to solve appiumrequired_appium_android_device_1 Cannot create container for service appium_android_device Run on the Windows OS Jan 8, 2019
@cai-git
Copy link

cai-git commented Sep 19, 2019

is the windows os ok? my system is windows.

@budtmo
Copy link
Member

budtmo commented Jul 13, 2022

duplicated #140

@budtmo budtmo closed this as completed Jul 13, 2022
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