Skip to content

Instantly share code, notes, and snippets.

@macedd
Created May 4, 2020 02:27
Show Gist options
  • Save macedd/d60ddf2b097c75a93d88c51a09a26caf to your computer and use it in GitHub Desktop.
Save macedd/d60ddf2b097c75a93d88c51a09a26caf to your computer and use it in GitHub Desktop.
Docker X11 Forwarding
version: "2.3"
services:
x11:
image: ubuntu
environment:
- DISPLAY
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
command: xcalc
FROM debian:jessie
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y x11-apps
xhost +
docker-compose run x11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment