An ubuntu based docker image for a rxvt terminal
$ docker run -ti --rm \ --net=host \ -e DISPLAY=$DISPLAY \ -v ~/.Xauthority:/root/.Xauthority \ -v /tmp/.X11-unix:/tmp/.X11-unix \ ianblenke/rxvt rxvt
You can either use the autobuild ianblenke/rxvt docker registry image, or you can build your own custom local docker image by cloning [github.com/ianblenke/docker-rxvt] and running
- The "--net=host" is important for DISPLAY=localhost
- The .Xauthority volume mount is important for xauth trust.
- Please don't "xhost +", it makes me cry just thinking about it.
- The /tmp/.X11-unix is for a unix domain docket based DISPLAY
If you're having problems with your DISPLAY, it's that the container either can't connect to whatever it is your DISPLAY points to, or you don't have the xauth cookie rights to talk to the X server.