Skip to content

Instantly share code, notes, and snippets.

@dacci
Created May 18, 2022 12:31
Show Gist options
  • Select an option

  • Save dacci/2b600088c01c0a5d93d64789632896c7 to your computer and use it in GitHub Desktop.

Select an option

Save dacci/2b600088c01c0a5d93d64789632896c7 to your computer and use it in GitHub Desktop.
CentOS Stream 9 with systemd enabled
FROM quay.io/centos/centos:stream9
RUN dnf -y install systemd procps-ng && dnf clean all
RUN systemctl mask \
systemd-remount-fs.service \
dev-hugepages.mount \
sys-fs-fuse-connections.mount \
systemd-logind.service \
getty.target \
console-getty.service \
systemd-udev-trigger.service \
systemd-udevd.service \
systemd-random-seed.service \
systemd-machine-id-commit.service
STOPSIGNAL SIGRTMIN+3
CMD ["/sbin/init"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment