space-ros / docker

Docker images to facilitate Docker-based development.
21 stars 32 forks source link

`run.sh` does not mount the user's Xauthority #173

Open EzraBrooks opened 2 months ago

EzraBrooks commented 2 months ago

Operating System

any

Installation type

Pulled from Docker Hub

Version or commit hash

all

RMW Implementation

FastRTPS

Client library (if applicable)

N/A

Steps to reproduce issue

Attempt to run the demos without modifying your X ACLs using xhost

Expected behavior

X11 should be able to authenticate

Actual behavior

X11 does not authenticate because it doesn't have access to the Xauthority.

The fix is to add something like -v $XAUTHORITY:/.Xauthority -e XAUTHORITY=/.Xauthority to the docker run command.

Backtrace or Console output

X11 connection rejected because of wrong authentication.
Bckempa commented 2 months ago

Hmmm is this fallout from https://github.com/space-ros/docker/pull/147? I think Rocker used to handle this

EzraBrooks commented 2 months ago

Weirdly, the only mention of Xauthority I can find in Rocker's codebase is in specifically its NVIDIA compatibility layer.

So, maybe not?

asimonov commented 1 month ago

in any case I think it is great idea to make running containers GUI-ready by default