How to run GUI applications directly in containers
Published on: 2025-07-12 10:04:11
How to run GUI applications directly in containers
This tutorial introduces a method for running GUI applications directly in containers (such as Docker and Podman) without installing any additional software.
When would you need to run GUI applications inside containers?
The source of the GUI application is untrusted, or its safety is uncertain.
You want to try a GUI application without installing it on your existing system, and you want to ensure no files or data remain after you finish using it (i.e., keep your system clean).
The GUI application is not found in your OS's package repository, and the offical software package does not have a version compatible with your current distro. For example, the application only provides an Ubuntu package, but your distro is Arch Linux or NixOS.
Table of content
Requirements
Your platform runs a display server using the Wayland protocol. If you are using a newer version of GNOME or KDE desktop environments, this requirement is likely alre
... Read full article.