我设法在基于this article的标准linux机器上运行了这个firefox docker容器,但是当我在树莓派上安装docker时,如果我要运行相同的容器,就会出现此错误:
docker: Error response from daemon: rpc error: code = 2 desc = "oci runtime error: exec format error".
在讨论中,我遵循了一个人的指示:
Windows 7+
It's a bit easier on Windows 7+ with MobaXterm:
Install MobaXterm for windows
Start MobaXterm
Configure X server: Settings -> X11 (tab) -> set X11 Remote Access to full
Use this BASH script to launch the container
run_docker.bash:
#!/usr/bin/env bash
CONTAINER=py3:2016-03-23-rc3
COMMAND=/bin/bash
DISPLAY="$(hostname):0"
USER=$(whoami)
docker run \
-it \
--rm \
--user=$USER \
--workdir="/home/$USER" \
-v "/c/Users/$USER:/home/$USER:rw" \
-e DISPLAY \
$CONTAINER \
$COMMAND
在我的pi上,这是开始脚本:
#!/usr/bin/env bash
CONTAINER=creack/firefox-vnc
COMMAND=/bin/bash
#DISPLAY="$(hostname):1.0"
DISPLAY="CCKK4H2:0.0"
USER=$(whoami)
docker run \
-it \
--rm \
--user=$USER \
--workdir="/home/$USER" \
-v "/c/Users/$USER:/home/$USER:rw" \
-e DISPLAY \
$CONTAINER \
$COMMAND
这就是我在普通centos上工作的方式。
任何想法如何进行故障排除或这意味着什么?