When I try to execute run.sh this error comes up:

X11 connection rejected because of wrong authentication.
_tkinter.TclError: couldn't connect to display "localhost:10.0"
I have logged in the remote server with -X, I have plot some figures using matplotlib executing a really simple python script to try out if the host display is correctly connected with the server. It worked so the problem comes when docker try to connect with the display (localhost10:0). I have try a few things to solve it but they did not work. I have try xhost + and also adding the volume $HOME/.Xauthority:/root/.Xauthority:rw to allow docker to acces the .Xauthority file. I add the volume to the docke-compose.yml
as you can see in the next screenshot:

¿Do you know how to solve this authentication error? I would really appreciate if you could help me.
When I try to execute run.sh this error comes up:

X11 connection rejected because of wrong authentication.
_tkinter.TclError: couldn't connect to display "localhost:10.0"
I have logged in the remote server with -X, I have plot some figures using matplotlib executing a really simple python script to try out if the host display is correctly connected with the server. It worked so the problem comes when docker try to connect with the display (localhost10:0). I have try a few things to solve it but they did not work. I have try xhost + and also adding the volume $HOME/.Xauthority:/root/.Xauthority:rw to allow docker to acces the .Xauthority file. I add the volume to the docke-compose.yml

as you can see in the next screenshot:
¿Do you know how to solve this authentication error? I would really appreciate if you could help me.