HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
mviereck
x11docker
Shell2018–2026
mviereck / x11docker

x11docker

Run GUI applications and desktops in docker and podman containers. Focus on security.

13Distinct people
13Mentions
0Explicit recommenders
6.3KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Run GUI applications and desktops in docker and podman containers. Focus on security.

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year13 dated mentions

Observed mentions: 2018-10-30 09:31:06 UTC to 2026-01-23 15:12:27 UTC.

01232018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments20182019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 3 mentions; 1 submissions, 2 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 3 mentions; 1 submissions, 2 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2026-01-01 00:00:00 UTC to 2027-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments. Incomplete calendar period.2026*

* An incomplete calendar period is marked with an outlined bar. Its count is not directly comparable with a full period.

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC110
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC312
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC303
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC312
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC000
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC101
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC000
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC101
2026 (partial)2026-01-01 00:00:00 UTC2027-01-01 00:00:00 UTC110

What Hacker News says

13 sources
I don't know anything about Xwayland, but there's this sentence in this socat writeup: > If you want to access an X server that does not provide -listen tcp (Xwayland) or just did not have enabled it during startup (like most likely your host Xorg), you can use socat to provide TCP/IP access. https://github.com/mviereck/x11docker/wiki/How-to-access-X-o... This makes me think that socat is exactly what you need to make it work with Xwayland?
In Remote controlling an HP 1670G logic analyzer with a Linux PC X server
I was just looking into various approaches to use process isolation for security on the desktop in Linux. Containers within VMs are a norm for security in cloud-native [1]. Some lessons there could be applied to desktop. One option is the approach of Spectrum OS [2]. They use crosvm (same as what Firecracker "micro VMs" uses) and virtio_wl [3][4]. Another approach might be x11docker [5] with Kata Containers [6]. Curiously, the work for WSLg (WSL with graphics) [7][8] to support graphical Linux guest VMs could also be applied on a Linux host. 1: https://archive.fosdem.org/2020/schedule/event/kernel_address_space_isolation/atta… 2: https://spectrum-os.org/ 3: https://spectrum-os.org/design.html 4: ht
Read the rest
In Harden and secure browsers in containers, with GUI
I've been looking for something like this. So far I've looked into x11docker (https://github.com/mviereck/x11docker) and dx11 (https://gitlab.com/brickpop/dx11-nim#dx11) but dx11 looks unmaintained and the whole solution feels incomplete. Yes, I know it's not LXD, but I was willing to accept docker as an alternative. The solution I'm currently checking is ContainerBox (https://github.com/AlexandreDey/ContainerBox). I'm building a container for KDE and I'll get back with results. My main goals is not to achieve the same security like QubesOS, but to have multiple isolated environments within the same window manager (something like KDE Activities but for separate users).
In Ask HW: Qubes OS alternative on LXD containers
This seems really interesting. A somewhat related project is x11docker[0] which attempts to make it easier to run gui applications through docker. It works pretty well with docker, though I've not used it since I switched to podman as there wasn't any support for it at the time. I've not tried recently. It does seem this project is at a dead end based on the recent development activity in recent months. [0] https://github.com/mviereck/x11docker/
In Subuser: Docker as Desktop Programs
Firejail is probably what you want. I'd be wary of considering Docker as a jail - it does some isolation, but I've yet to see any serious effort or analysis of "safely run arbitrary code as root in docker and avoid escape" (the scenario being at least a full compromise of the app, with potentially an elevation to root in the container). Docker is "(shipping) container first" not "(CIA black site) container first". Firejail isn't perfect - but it's at least designed to be a jail/sandbox. There's also the possibility to use lxc via lxd - if you're running xorg you can forward x11 over ssh to the container (or vm). However access to xorg is problematic (eg shared clipboard, window/screen access). Wayland supposedly does "everything x does" - but I don't know how you connect displays via the network. But in the end (even though you requested
Read the rest
"not vm") - I'd probably have a look at qubes os: https://www.qubes-os.org/ Afaik it mitigates the "shared xorg server" via using x-in-x nested servers (eg xephyr). Also came across this, which appears to be a little better than "just" docker - but I'd probably still go with firejail or qubes os: https://github.com/mviereck/x11docker/blob/master/README.md
In We are making Sandboxie a free tool, with plans to transition it to open source

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.