X11 forwarding of a GUI app running in docker

前端 未结 4 715
南旧
南旧 2021-01-01 02:31

First off: I have read the answers to similar questions on SO, but none of them worked.

The situation:

  • App with GUI is running in a docker container (C
4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-01 02:52

    Thanks so much @Lazarus535
    I found that for me adding the following to my docker command worked:
    --volume="$HOME/.Xauthority:/root/.Xauthority:rw"
    I found this trick here
    EDIT:
    As Lazarus pointed out correctly you also have to set the --net=host option to make this work.

提交回复
热议问题