This shows you the differences between two versions of the page.
| — | blog:2022:01:30:2022-01-30_-_x11_forwarding_to_docker_container [2022/01/30 20:21] (current) – created basz | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== 2022-01-30 - X11 forwarding to docker container ====== | ||
| + | sometime ago i had an issue with X11 forwarding for containers. for quite some time i just used setup SSHd in container and X11 forward via SSH. later on things improved. in fact my [[blog: | ||
| + | |||
| + | the spell is: | ||
| + | <code bash> | ||
| + | docker run \ | ||
| + | -it \ | ||
| + | -rm \ | ||
| + | -u "$(id -u):$(id -g)" \ | ||
| + | -e DISPLAY \ | ||
| + | -v / | ||
| + | " | ||
| + | </ | ||
| + | |||
| + | so the key thing is to forward '' | ||
| + | |||
| + | btw: for QT-based applications you may also want to pass '' | ||