github.com/muhammadn/cortex@v1.9.1-0.20220510110439-46bb7000d03d/packaging/rpm/centos-systemd/Dockerfile (about) 1 FROM centos:8 2 ENV container docker 3 RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \ 4 systemd-tmpfiles-setup.service ] || rm -f $i; done); \ 5 rm -f /lib/systemd/system/multi-user.target.wants/*; \ 6 rm -f /etc/systemd/system/*.wants/*; \ 7 rm -f /lib/systemd/system/local-fs.target.wants/*; \ 8 rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ 9 rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ 10 rm -f /lib/systemd/system/basic.target.wants/*; \ 11 rm -f /lib/systemd/system/anaconda.target.wants/*; 12 13 VOLUME [ "/sys/fs/cgroup"] 14 CMD ["/usr/sbin/init"]