I absolutely have to use Docker, when there are build dependencies, like platform specific installs, and Makefiles. Like Golang sometimes, and native postgresql extensions.
I wonder if I can use Docker to run non-web GUI apps. I want to avoid VirtualBox.
Of course, I realize that VSCode can be dockerized, but I haven't tried it.
FROM x11docker/lxqtRUN apt-get update
RUN apt-get install-y wget build-essential bzip2 xdg-utils
RUN wget -q https://github.com/ankitects/anki/releases/download/2.1.26/anki-2.1.26-linux-amd64.tar.bz2
RUN tar-xf anki-2.1.26-linux-amd64.tar.bz2
RUN cd anki-2.1.26-linux-amd64 && make && make installRUN apt-get install-y locales libnss3 mpv
RUN sed-i'/en_US.UTF-8/s/^#//g' /etc/locale.gen
RUN locale-gen
ENV LC_ALL=en_US.UTF-8ENV LANG=en_US.UTF-8ENV LANGUAGE=en_US.UTF-8
#!/bin/sh
x11docker \--xpra--clipboard--pulseaudio--no-entrypoint--home=$PWD/home \--\-- patarapolw/anki2.1.26 anki
I absolutely have to use Docker, when there are build dependencies, like platform specific installs, and Makefiles. Like Golang sometimes, and native postgresql extensions.
I wonder if I can use Docker to run non-web GUI apps. I want to avoid VirtualBox.
Of course, I realize that VSCode can be dockerized, but I haven't tried it.
x11docker in case turning on the socket is a little much for you which I wouldn't blame you for but Jonathan's solution is rather elegant
Thanks, it works. Although I need to install x11docker for AUR, instead of classic installation.
My first x11docker project. I cannot run with
library/debian
forx11docker/lxde
, though.This is very interesting, I've never try it myself 🙂.
You can easily do this on Linux by mounting the x11 socket. For other platforms it isn't so simple.
Please elaborate / suggest an article...
Like Xorg on different ports?
You can use the same Xorg instance:
I am on GNOME40 on Xorg.
Maybe its related to me being on rootless docker? Might be that you need to create a user with the same uid as the host for your case.