英文:
Karate Chrome Docker image is starting but chrome is getting existed as soon as it try to start it
问题
我从Docker Hub下载了Karate Chrome的docker镜像。当我使用下面的命令启动karate chrome docker时,我发现在启动容器时Chrome没有启动。
docker run --name karate --rm -p 9222:9222 -p 5900:5900 -e KARATE_SOCAT_START=true --cap-add=SYS_ADMIN ptrthomas/karate-chrome
我能够在我的本地Macbook上启动一个容器,但是当我尝试在组织的Macbook上启动相同的镜像时,它抛出一个错误。你知道可能是什么原因吗?是因为VPN吗?我断开了VPN并尝试了但是得到相同的响应。
期望结果:能够启动一个带有Chrome的容器。
实际结果:无法打开Chrome。
以下是一些日志。
INFO 重新启动未知pid 2764(退出状态0)
INFO 重新启动未知pid 2783(由SIGTRAP终止)
INFO 重新启动成功:chrome进入RUNNING状态,进程已保持运行时间超过1秒
INFO 重新启动未知pid 2824(退出状态0)
INFO 退出:chrome(由SIGTRAP终止;不是预期的)
INFO 重新启动未知pid 2810(退出状态0)
INFO 重新启动未知pid 2815(退出状态0)
INFO 重新启动生成:'chrome' pid 2828
INFO 重新启动未知pid 2801(由SIGPIE终止)
INFO 重新启动未知pid 2802(由SIGTRAP终止)
这些日志不断流动,并且每次都会更改端口号。
英文:
I have downloaded Karate Chrome docker image from Docker Hub. When I am starting karate chrome docker with below command, I am seeing chrome is not starting when I spin up the container.
docker run --name karate --rm -p 9222:9222 -p 5900:5900 -e KARATE_SOCAT_START=true --cap-add=SYS_ADMIN ptrthomas/karate-chrome
I am able to spin up a container on my local Macbook but when I am trying to spin up the same image on my organization Macbook, it is throwing me an error. Do you know what it could be? Is it because of VPN? I disconnected VPN and tried but same response
Expected Result: Able to spin up a container with Chrome.
Actual Result: Not able to open Chrome.
Below are some logs.
INFO reaped unknown pid 2764(exit status 0)
INFO reaped unknown pid 2783(terminated by SIGTRAP)
INFO reaped success: chrome entered RUNNING state,process has stayed up for > than 1 seconds
INFO reaped unknown pid 2824(exit status 0)
INFO exited: chrome (terminate by SIGTRAP; not expected)
INFO reaped unknown pid 2810(exit status 0)
INFO reaped unknown pid 2815(exit status 0)
INFO reaped spawned: 'chrome' with pid 2828
INFO reaped unknown pid 2801(terminated by SIGPIE)
INFO reaped unknown pid 2802(terminated by SIGTRAP)
These logs keeps flowing up and everytime it is changing the port number.
答案1
得分: 1
可能是因为 Docker 容器还未适配苹果芯片(Apple silicon / ARM / M1 / M2)。
你可以查看源代码并尝试构建自己的 Docker 镜像。我们欢迎贡献,以使其在各种硬件平台上都能正常运行。
英文:
Most likely because the Docker container is not yet ready for Apple silicon / ARM / M1 / M2.
You should be able to build your own Docker image looking at the source. We welcome contributions to make this work across all kinds of hardware.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论