Open vindarel opened 1 year ago
How is it possible to run a graphical application inside the Docker?
Probably it will require to forward XWindow socket or port into a docker container?
Almost forgot about this "detail". I don't know an actual app that does it, but I have read here and there that it is doable.
A lem 2.0 update would be nice already :D
Probably it will require to forward XWindow socket or port into a docker container?
yes.
https://www.howtogeek.com/devops/how-to-run-gui-applications-in-a-docker-container/ (2021)
# docker-compose
version: "3"
services:
app:
image: my-app:latest
build: .
environment:
- DISPLAY=${DISPLAY}
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
network_mode: host
and an example image with Firefox.
https://medium.com/@SaravSun/running-gui-applications-inside-docker-containers-83d65c0db110 (2018)
$ sudo docker run --net=host --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" android-studio
https://somatorio.org/en/post/running-gui-apps-with-docker/ (2016)
docker run [--rm [-it]|-d] \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY \
imagem [cmd]
with a hack for MacOS (2016).
Maybe the best would be to ship an AppImage :thinking:
Hi,
This Docker image runs the ncurses version of Lem.
It would be awesome (and practical for me) if it could run the new SDL2 version.