jlesage / docker-baseimage-gui

A minimal docker baseimage to ease creation of X graphical application containers
MIT License
1.2k stars 179 forks source link

Error creating Mullvad application #102

Open daniel-huesca opened 1 year ago

daniel-huesca commented 1 year ago

Hello, first of all, thank you for your work, it's been really useful.

I'm trying to docker build a Mullvad GUI app docker image to use with UNRAID (and use this image as my main VPN container) but I'm getting the following error:

[app ] System has not been booted with systemd as init system (PID 1). Can't operate.
[app ] Failed to connect to bus: Host is down

This is my Dockerfile:

FROM jlesage/baseimage-gui:debian-11
RUN apt-get update \
    && apt-get -y install \
    apt-transport-https \
    wget \
    procps \
    systemd \
    systemd-sysv \
    && wget -O mullvad-gui.deb https://mullvad.net/en/download/app/deb/latest \
    && dpkg -i ./mullvad-gui.deb \
    && rm -rf ./mullvad-gui.deb
COPY startapp.sh /startapp.sh
RUN set-cont-env APP_NAME "Mullvad-GUI"

And this is my startapp.sh:

#!/bin/sh
exec "/opt/Mullvad VPN/mullvad-vpn" %U

Can you help me out?

jlesage commented 1 year ago

This seems to be something specific to Mullvad, where it requires the use of systemd ?