2024-09-02 15:47:27 +08:00
|
|
|
FROM ubuntu:22.04
|
|
|
|
|
|
|
|
RUN echo 'root:root' | chpasswd
|
|
|
|
RUN printf '#!/bin/sh\nexit 0' > /usr/sbin/policy-rc.d
|
|
|
|
RUN apt-get update
|
2024-09-02 15:54:18 +08:00
|
|
|
RUN apt-get install -y systemd systemd-sysv
|
2024-09-02 15:47:27 +08:00
|
|
|
RUN printf "systemctl start systemd-logind" >> /etc/profile
|
|
|
|
|
|
|
|
RUN apt-get install wget net-tools
|
|
|
|
|
|
|
|
ENTRYPOINT ["/sbin/init"]
|