Px4 dockerfile with gazebo and Ros

I am trying to run a gazebo docker container. My host is using 440 drivers i am trying openGl and when I do make px4_sitl gazebo i get:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 38
Current serial number in output stream: 37
If I have opengl installed from docker file or not installed anything a tall

and

X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 27
Current serial number in output stream: 28
If i run the same .run file I used to install drivers on my main machine

Here is my dockerfile https://pastebin.com/2JYeTiGx
Also I have installed nvidia-docker and nvidia-smi shows my GC