在一键安装的vscode的docker中运行乌龟,显示如下问题,没有显示画面
-
Could not connect to any X display.
[turtle_GUI-2] process has died [pid 1778, exit code 1, cmd /opt/ros/melodic/lib/turtlesim/turtlesim_node __name:=turtle_GUI __log:=/root/.ros/log/b374eb8a-5798-11ed-923e-0242ac110002/turtle_GUI-2.log].
log file: /root/.ros/log/b374eb8a-5798-11ed-923e-0242ac110002/turtle_GUI-2*.log -
@2205717020 在主机端运行 xhost +
-
@小鱼 好的,谢谢小鱼