FROM ubuntu:latest
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y lubuntu-desktop
RUN rm /run/reboot-required*
RUN useradd -m testuser -p $(openssl passwd 1234)
RUN usermod -aG sudo testuser
RUN apt install -y xrdp
RUN adduser xrdp ssl-cert
RUN sed -i '3 a echo "\
export GNOME_SHELL_SESSION_MODE=Lubuntu\\n\
export XDG_SESSION_TYPE=x11\\n\
export XDG_CURRENT_DESKTOP=LXQt\\n\
export XDG_CONFIG_DIRS=/etc/xdg/xdg-Lubuntu:/etc/xdg\\n\
" > ~/.xsessionrc' /etc/xrdp/startwm.sh
EXPOSE 3389
CMD service xrdp start ; bash
출처 : https://www.youtube.com/watch?v=0rl5145aEMk&ab_channel=AgileDevArt
> docker build -t lubuntu .
$ service --status-all
# xrdp, dbus가 꺼져있으면
$ service xrdp restart
$ service dbus restart
안녕하세요.
위의 내용대로 따라해보고 있는데 잘 안되네요.
혹시 최신버전 도커에서 해 보셨나요?