Intel® Distribution of OpenVINO™ Toolkit
Community support and discussions about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all things computer vision-related on Intel® platforms.

GUI enabling on OpenVINO Docker

Kobu_Intel
Employee
364 Views

Hi,

Does anyone have BKM for GUI enabling on OpenVINO Docker container?

OpenVINO Docker container has been stably running, how to display picture/video..etc. such GUI enabling BKC has been investigating.

Thanks!

BR/Kobu

0 Kudos
2 Replies
Mateo_G_Intel
Employee
364 Views

Hi, 

If you are running it on a Linux host, you need to forward the X11 over SSH. 

The X server on the host should be enabled for remote connections (note that this turns off access control):
 

xhost +

Then you can run your container:
 

sudo docker run --net=host --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" <DOCKER_IMAGE_NAME>

 

Note that the container is using the same host network, so ports are the same, exports the $DISPLAY variable to the container and binds the Xauthority file.

You can also do this in your docker-compose.yml. Take a lookat this github repository where I did that: 

https://github.com/mateoguzman/openvino-docker

Hope this helps,  

Mateo 

Kobu_Intel
Employee
364 Views

Hi Mateo,

Thanks for your comments, let me try.

BR/Kobu

Reply