11 lines
291 B
Docker
11 lines
291 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
|
|
RUN printf "systemctl start systemd-logind" >> /etc/profile
|
|
|
|
RUN apt-get install wget net-tools
|
|
|
|
ENTRYPOINT ["/sbin/init"] |