DEV Community

Discussion on: Do you use Docker?

Collapse
 
thomashighbaugh profile image
Thomas Leon Highbaugh

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

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

Thanks, it works. Although I need to install x11docker for AUR, instead of classic installation.

yay -S x11docker
x11docker --update-master
docker pull x11docker/kaptain
Enter fullscreen mode Exit fullscreen mode
Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

My first x11docker project. I cannot run with library/debian for x11docker/lxde, though.

FROM x11docker/lxqt
RUN 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 install

RUN 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-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8
Enter fullscreen mode Exit fullscreen mode
#!/bin/sh

x11docker \
    --xpra --clipboard --pulseaudio --no-entrypoint --home=$PWD/home \
    -- \
    -- patarapolw/anki2.1.26 anki
Enter fullscreen mode Exit fullscreen mode