Execute graphical applications from Docker

Thanks for sharing that output. It is helpful to know that you have containers-virt installed, which installs kata as the default runtime as I suspected.

Try adding the --runtime=runc earlier in the docker run command. I think it doesn’t get comprehended if it’s added after the docker image name. This command worked for me with containers-virt installed for example:

xhost +
docker run --rm --runtime=runc --interactive --env=DISPLAY=$DISPLAY --env=QT_X11_NO_MITSHM=1 --volume=/tmp/.X11-unix:/tmp/.X11-unix:rw sshipway/xclock

And/or, you can remove the containers-virt bundle to avoid the issue (sudo swupd bundle-remove containers-virt && sudo systemctl daemon-reload && sudo systemctl restart docker)

Fingers cross that it works for you this time :slight_smile:

2 Likes