2
0

Dockerfile 466 B

12345678
  1. FROM debian:bullseye
  2. RUN apt-get update && apt-get install -y systemd rsh-redone-server ifupdown sudo kmod cgroup-tools systemd-sysv
  3. RUN echo "host" > /root/.rhosts && \
  4. chmod 600 /root/.rhosts && \
  5. /bin/echo -e "auto eth0\niface eth0 inet static\naddress 254.255.255.2/24" > /etc/network/interfaces.d/eth0 && \
  6. sed -i '/pam_securetty/d' /etc/pam.d/rlogin && \
  7. cp /usr/share/systemd/tmp.mount /etc/systemd/system && \
  8. systemctl enable tmp.mount