Created
May 4, 2020 02:27
-
-
Save macedd/d60ddf2b097c75a93d88c51a09a26caf to your computer and use it in GitHub Desktop.
Docker X11 Forwarding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2.3" | |
services: | |
x11: | |
image: ubuntu | |
environment: | |
- DISPLAY | |
volumes: | |
- /tmp/.X11-unix:/tmp/.X11-unix:rw | |
command: xcalc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:jessie | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update \ | |
&& apt-get install -y x11-apps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xhost + | |
docker-compose run x11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment