Skip to content

podman-gui-app

This guide explains how to run a GUI application in a Podman container.

Important: this has been tested on Debian 12 (bookworm) with GNOME 43.9.

Start a Podman container with the proper "X11 forwarding" options, using the following command:

Bash
podman run -it --rm -eDISPLAY -eXAUTHORITY -v/tmp/.X11-unix:/tmp/.X11-unix:ro -v"$XAUTHORITY:$XAUTHORITY:ro" docker.io/library/debian:12

Inside the container, you can install and run your GUI application. Example:

Bash
apt update && apt install -y x11-apps
xclock