Running GUI apps within Docker containers
You can also do it with this one-liner:docker run -it --rm -e DISPLAY --net=host -v $XAUTHORITY:/root/.Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix debian:11-slimThen inside the container, run:    apt update
    apt install firefox-esr
    firefox

Now Firefox runs inside the container but displays on your hosts screen and you can use it right away.