I installed docker desktop on mac machine and followed the below steps,
- Pulled the appium/appium-emulator image for docker hub
- ran a instance of docker container using the command
docker run --name appiumEmulator -d appium/appium-emulator
- Then configured the program with the Appium URL – https://172.17.0.2:4723/wd/hub. IP was found by inspecting the image and port number was obtained by listing the docker images using command
Error from console –
org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Original error: Failed to connect to /172.17.0.2:4723
Other work around that I tried, Opened command prompt for the image using "
docker exec -it <imageID> bash " and opened another appium port and got the same error again for the new port.
Source: Docker Questions