connect display in a docker

https://blog.yadutaf.fr/2017/09/10/running-a-graphical-app-in-a-docker-container-on-a-remote-server/

 

 

docker run --rm -it --net host  \
--device /dev/snd ${VIDEO_DEVICES} \
--ipc "host" \
--env="DISPLAY" \
--env="QT_X11_NO_MITSHM=1" \
${DOCKER_VOLUME_MNT_SAMPLES} \
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
-v ${HOME}/.Xauthority:/root/.Xauthority:rw \
${GPUS} \
${image}  /bin/bash

posted on 2020-12-30 15:11  cdekelon  阅读(48)  评论(0编辑  收藏  举报

导航