NVIDIA / enroot

A simple yet powerful tool to turn traditional container/OS images into unprivileged sandboxes.
Apache License 2.0
622 stars 94 forks source link

Can not open Display (GUI apps) error inside the Enroot container #163

Open SheelendraSharma opened 1 year ago

SheelendraSharma commented 1 year ago

Hi Team,

I cannot launch any GUI (Graphical User Interface) application from the Enroot container. But I can launch any GUI application outside Enroot container (i.e., regular Terminal of HPC cluster), and it works fine.

I am using an Ubuntu container (ubuntu.sqsh) and installing GUI packages like xeyes, xterm, etc., from the root(apt-get install x11-apps).

The commands are available to use, but whenever I try to launch xeyes, it shows:

MoTTY X11 proxy: Unsupported authorisation protocol Error: Can't open display: localhost:50.0

Can you guys please help me to resolve the above issue?

Steps that I have followed:

1) enroot create -n Test ubuntu.sqsh

2) enroot start -r Test

apt-get update && apt-get upgrade apt-get install x11-apps

3) enroot start Test

$ xeyes MoTTY X11 proxy: Unsupported authorisation protocol Error: Can't open display: localhost:50.0