LinuxCommandLibrary

x11docker

Run GUI Docker containers securely

TLDR

Run GUI app

$ x11docker [image] [command]
copy
With GPU acceleration
$ x11docker --gpu [image] [command]
copy
Share home directory
$ x11docker --home [image]
copy
With audio
$ x11docker --pulseaudio [image]
copy
Clipboard sharing
$ x11docker --clipboard [image]
copy

SYNOPSIS

x11docker [--gpu] [--home] [--pulseaudio] [options] image [command]

DESCRIPTION

x11docker runs graphical applications from Docker containers with secure X11 display forwarding. It provides isolated display access using multiple backends including Xephyr, Xpra, and nxagent, preventing containers from accessing the host's X server directly.
The tool supports GPU hardware acceleration, PulseAudio integration, and clipboard sharing between the container and host. This security-focused approach allows running untrusted GUI applications in containers while maintaining display isolation from the host desktop environment.

PARAMETERS

--gpu

GPU access.
--home
Share home.
--pulseaudio
Audio support.
--clipboard
Share clipboard.
--xephyr
Use Xephyr.

CAVEATS

Docker required. X11 setup. May need configuration.

HISTORY

x11docker was created to securely run Docker containers with X11 GUI applications.

SEE ALSO

docker(1), xhost(1), xephyr(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community