From c72f3f00733a3f470409b06146773447b1d3ab91 Mon Sep 17 00:00:00 2001 From: Cadey Dodrill Date: Mon, 21 Mar 2016 23:47:26 -0700 Subject: [PATCH] Add base fedora systemd container --- base/fedora-systemd/Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 base/fedora-systemd/Dockerfile diff --git a/base/fedora-systemd/Dockerfile b/base/fedora-systemd/Dockerfile new file mode 100644 index 0000000..438b60f --- /dev/null +++ b/base/fedora-systemd/Dockerfile @@ -0,0 +1,15 @@ +FROM fedora:23 + +ENV container docker + +RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \ + rm -f /lib/systemd/system/multi-user.target.wants/*; \ + rm -f /etc/systemd/system/*.wants/*; \ + rm -f /lib/systemd/system/local-fs.target.wants/*; \ + rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ + rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ + rm -f /lib/systemd/system/basic.target.wants/*;\ + rm -f /lib/systemd/system/anaconda.target.wants/*; + +VOLUME [ "/sys/fs/cgroup" ] +CMD ["/usr/sbin/init"]