Public | Automated Build

Last pushed: 2 years ago
Short Description
Appium server up to date with the last version of oficial repo
Full Description


Repository for automated builds of appium server container.

This container can be used as jenkins-slave for your automated tests.

Software included

  • Maven3
  • jdk8
  • appium 1.4.10
  • android android-sdk_r24.1.2
  • android build-tools-22.0.1

Just 1 appium server

Run container with usb privileges to find the phisical device

$ docker run -d --privileged -v /dev/bus/usb:/dev/bus/usb  -p 4723:4723 davidbaena/appium

More than 1 appium server

Start 2 appium servers with diferents configurations. Check appium Doc.

  • '-p' port: the main Appium port
  • '-bp' bootstrap port: the device id
  • '-U' UDID: the Appium bootstrap port
$ docker run -d --privileged -v /dev/bus/usb:/dev/bus/usb -e appium_args="-p 4723 -bp 2251 -U 32456"  -p 4723:4723 davidbaena/appium

$ docker run -d --privileged -v /dev/bus/usb:/dev/bus/usb -e appium_args="-p 4724 -bp 2252 -U 43364" -p 4724:4724 davidbaena/appium
Docker Pull Command

Comments (5)
a year ago

I have used this docker image but it fails with error "Exception in org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]"

so i had to update android
./android update sdk -u

a year ago

Can you run this with an emulator?

a year ago

Hi davidbaena,

Could you please show me how to start testing on real device with your docker image?
I am new member in Docker, It would be great if there is any tutorial video about using docker in automation mobile test.

Anh Pham

2 years ago

@makoppel you are right, I've just fixed the info. Thanks!!

2 years ago

This is great, just what I needed. One note though - the command to run appium with specific device would be:

$ docker run -d --privileged -v /dev/bus/usb:/dev/bus/usb -p 4723:4723 -e appium_args="-p 4723 -bp 2251 -U 32456"davidbaena/appium

Note that image name is the last argument.