我試圖在Docker中運行一個GUI並試圖關注下面的鏈接。圖形用戶界面的Docker
http://wiki.ros.org/docker/Tutorials/GUI#The_safer_way
使用此鏈接,我試圖執行the_safer_way方法,但在我的MAC中得到以下錯誤。
Ps-MacBook-Pro:~ p$ docker run -it \
> --user=$USER \
> --env="DISPLAY" \
> --volume="/etc/group:/etc/group:ro" \
> --volume="/etc/passwd:/etc/passwd:ro" \
> --volume="/etc/shadow:/etc/shadow:ro" \
> --volume="/etc/sudoers.d:/etc/sudoers.d:ro" \
> --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
> osrf/ros:indigo-desktop-full \
> rqt
docker: Error response from daemon: Mounts denied:
The path /etc/sudoers.d
is not shared from OS X and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.
您所遵循的說明假設您在Linux主機上。你運行的MacOS上沒有像Linux那樣運行的X11服務器。請參閱以下有關MacOS的說明:https://cntnr.io/running-guis-with-docker-on-mac-os-x-a14df6a76efc – BMitch
@MarkBooth,因爲鏈接唯一的答案是皺眉,我沒有時間在此重現該程序。 – BMitch
@bmitch:謝謝..我試圖安裝在Ubuntu的現在.. – user1050619