一键安装docker+ros foxy后 在终端输入容器名 显示容器名 command not found
-
用了鱼哥的一键安装docker+ros foxy后发现,在终端输入容器名 显示容器名 command not found。往前翻了翻打印日志,看到了这里有报错情况。请问这是什么情况?
Run CMD Task:[sudo docker run -dit --name=foxy1 -v /home/wellit:/home/wellit -v /tmp/.X11-unix:/tmp/.X11-unix --device=/dev/dri/renderD128 -v /dev/dri:/dev/dri --device /dev/snd -e DISPLAY=unix$DISPLAY -w /home/wellit ros:foxy] 9d8bc24e93a38f8ce464ed22ee845253b68329aa3daebd938f147a538ec1474a docker: Error response from daemon: error gathering device information while adding custom device "/dev/dri/renderD128": no such file or directory. Run CMD Task:[docker exec -it foxy1 /bin/bash -c "echo -e ' source /opt/ros/foxy/setup.bash' >> ~/.bashrc" ] Error response from daemon: Container 9d8bc24e93a38f8ce464ed22ee845253b68329aa3daebd938f147a538ec1474a is not running Run CMD Task:[xhost +local:] xhost: unable to open display "localhost:10.0"
-
@Zln4ever 你有装独显吗
-
@小鱼 应该没有 我用的是jetson板子
-
@Zln4ever 手动创建一下试试吧
sudo docker run -dit --name=foxy1 -v /home/wellit:/home/wellit -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev/dri:/dev/dri --device /dev/snd -e DISPLAY=unix$DISPLAY -w /home/wellit ros:foxy
-
@小鱼 结果又提示了这个错误,foxy1已经使用了,但是我执行foxy1 还是command not found
docker: Error response from daemon: Conflict. The container name "/foxy1" is already in use by container "9d8bc24e93a38f8ce464ed22ee845253b68329aa3daebd938f147a538ec1474a". You have to remove (or rename) that container to be able to reuse that name. See 'docker run --help'.
-
@小鱼 这里已经显示镜像已经起来了
-
@Zln4ever 那你试试用vscode看看能不能进入容器,详细步骤可以到b站看视频
-
@小鱼 好的谢谢鱼哥