Running GUI apps inside container in hidpi

It’s been over an year since I started to work entirely inside containers including GUI applications using -e DISPLAY=$DISPLAY -e XAUTHORITY=$HOME/.Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix it worked like a charm so far.

Problem is I bought a new notebook with a 4K screen and now applications not based on GTK do NOT scale… so they are very small

Any ideas how to solve this?
Appreciate.

Faced the same issue, what worked for me is mounting my host ~/.Xdefaults into the container, which contains

Xft.dpi: 192

Hope this helps!