无法在docker image appium/appium emulator上运行appium测试

无法在docker image appium/appium emulator上运行appium测试,docker,android-emulator,appium,appium-android,Docker,Android Emulator,Appium,Appium Android,我在mac机器上安装了docker desktop并遵循以下步骤 已为docker hub拉取appium/appium仿真程序映像 使用命令docker run--name appiumEmulator-d appium/appium emulator运行docker容器的实例 然后使用Appium URL-配置程序。IP是通过检查映像找到的,端口号是通过使用命令docker ps列出docker映像获得的 控制台出错-org.openqa.selenium.SessionNotCreated

我在mac机器上安装了docker desktop并遵循以下步骤

  • 已为docker hub拉取appium/appium仿真程序映像
  • 使用命令
    docker run--name appiumEmulator-d appium/appium emulator运行docker容器的实例
  • 然后使用Appium URL-配置程序。IP是通过检查映像找到的,端口号是通过使用命令
    docker ps
    列出docker映像获得的
  • 控制台出错-
    org.openqa.selenium.SessionNotCreatedException:无法创建新的远程会话。原始错误:无法连接到/172.17.0.2:4723

    我尝试的其他解决方法是,使用“
    docker exec-it bash
    ”打开图像的命令提示符,然后打开另一个appium端口,新端口再次出现同样的错误