ubuntu/Dockerfile
2024-09-02 15:54:18 +08:00

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"]