11 lines
314 B
Docker
11 lines
314 B
Docker
|
FROM ubuntu:22.04
|
||
|
|
||
|
RUN echo 'root:root' | chpasswd
|
||
|
RUN printf '#!/bin/sh\nexit 0' > /usr/sbin/policy-rc.d
|
||
|
RUN apt-get update
|
||
|
RUN apt-get install -y systemd systemd-sysv dbus dbus-user-session
|
||
|
RUN printf "systemctl start systemd-logind" >> /etc/profile
|
||
|
|
||
|
RUN apt-get install wget net-tools
|
||
|
|
||
|
ENTRYPOINT ["/sbin/init"]
|