Glmark2 Error: main: could not initialize canvas

hello,
I tried following this tutorial:

in order to run an opengl program inside docker on a jetson TX2. glmark2 however gives back an error:
root@e78d38e1e237:/# glmark2 No protocol specified Error: main: Could not initialize canvas

I found this entry in the forum:

where a similar problem was apparently caused by running it inside wayland. Well I checked
echo $XDG_SESSION_TYPE x11
but that does not seem to be the problem with me.

I tried different values for the $DISPLAY variable. ‘:1’, ':0
, ‘0:0’ all gave the same error message.

Also I tried running glxgears from the package mesa-utils to verify gpu access. The error here is: Error: couldn't open display followed by the value of the $DISPLAY variable.

Both programs glxgears and glmark2 work fine on the actual system. There needs to be a problem with how the docker container communicates with the X11-server.

The used files and commands should be as they are descibed in the tutorial but I include the files as text here in case the link dies or I made a mistake copying.

dockerfile:{
FROM ubuntu:18.04

Dependencies for glvnd and X11.

RUN apt-get update
&& apt-get install -y -qq --no-install-recommends
libglvnd0
libgl1
libglx0
libegl1
libxext6
libx11-6
&& rm -rf /var/lib/apt/lists/*# Env vars for the nvidia-container-runtime.
ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES graphics,utility,compute
}

do.sh:{
docker run
-it
–gpus all
-v=“/tmp/.X11-unix:/tmp/.X11-unix”
-e “DISPLAY=:1”
-e QT_X11_NO_MITSHM=1
–privileged
glvnd-x
bash
}

You may try adding –runtime nvidia into docker run options.

Thank you for the quick response.
With this flag enabled my error has received some friends:

Error: glXChooseFBConfig() failed  
Error: Error: Couldn't get GL visual config!  
Error: main: Could not initialize canvas

I am positive I followed the instructions.