/dockerfile-x11docker-xfce

Base image Xfce desktop

Primary LanguageDockerfileMIT LicenseMIT

x11docker/xfce

XFCE desktop in Docker image. Based on Debian.

  • Run XFCE desktop in docker.
  • Use x11docker to run GUI applications and desktop environments in docker images.

Command examples:

  • Single application: x11docker x11docker/xfce thunar
  • Full desktop: x11docker --desktop x11docker/xfce

Options:

  • Persistent home folder stored on host with --home
  • Shared host file or folder with --share PATH
  • Hardware acceleration with option --gpu
  • Clipboard sharing with option --clipboard
  • ALSA sound support with option --alsa
  • Pulseaudio sound support with option --pulseaudio
  • Language locale settings with --lang [=$LANG]
  • Printing over CUPS with --printer
  • Webcam support with --webcam

Look at x11docker --help for further options.

Extend base image

To add your desired applications, create your own Dockerfile with this image as a base. Example:

FROM x11docker/xfce
RUN apt-get update
RUN apt-get install -y midori

Screenshot

XFCE desktop in an Xnest window running with x11docker:

screenshot