CoolFace
Apppublic

deveshshetty/sysadmin-game

sourceHugging Facemitupdated 5mo agoView on Hugging Face
0likes
sandbox.Dockerfile43 linesDownload Raw Back to docker
1# Systemd-enabled Ubuntu container for sysadmin scenarios2FROM ubuntu:22.043 4ENV DEBIAN_FRONTEND=noninteractive5ENV container=docker6 7# Install systemd and common tools needed for scenarios8RUN apt-get update && apt-get install -y \9    systemd \10    systemd-sysv \11    nginx \12    apache2 \13    python3 \14    python3-venv \15    curl \16    netcat-openbsd \17    procps \18    iproute2 \19    openssl \20    coreutils \21    && rm -rf /var/lib/apt/lists/* \22    && rm -f /lib/systemd/system/multi-user.target.wants/* \23    && rm -f /etc/systemd/system/*.wants/* \24    && rm -f /lib/systemd/system/local-fs.target.wants/* \25    && rm -f /lib/systemd/system/sockets.target.wants/*udev* \26    && rm -f /lib/systemd/system/sockets.target.wants/*initctl* \27    && rm -f /lib/systemd/system/basic.target.wants/* \28    && rm -f /lib/systemd/system/anaconda.target.wants/*29 30# Disable services that cause issues in containers31RUN systemctl mask \32    systemd-firstboot.service \33    systemd-udevd.service \34    systemd-modules-load.service \35    sys-kernel-debug.mount \36    sys-kernel-tracing.mount37 38VOLUME ["/sys/fs/cgroup"]39 40STOPSIGNAL SIGRTMIN+341 42CMD ["/lib/systemd/systemd"]43