-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile.ce-systemd
25 lines (22 loc) · 996 Bytes
/
Dockerfile.ce-systemd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM mbentley/docker-in-docker:ce
LABEL maintainer="Matt Bentley <[email protected]>"
ENV container=docker LC_ALL=C
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update &&\
apt-get install -y --no-install-recommends systemd systemd-sysv &&\
systemctl set-default multi-user.target &&\
rm -rf /var/lib/apt/lists/* &&\
rm -f /lib/systemd/system/multi-user.target.wants/* \
/etc/systemd/system/*.wants/* \
/lib/systemd/system/local-fs.target.wants/* \
/lib/systemd/system/sockets.target.wants/*udev* \
/lib/systemd/system/sockets.target.wants/*initctl* \
/lib/systemd/system/basic.target.wants/* \
/lib/systemd/system/anaconda.target.wants/* \
/lib/systemd/system/plymouth* \
/lib/systemd/system/systemd-update-utmp* &&\
(cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ "${i}" = "systemd-tmpfiles-setup.service" ] || rm -f "${i}"; done) &&\
systemctl enable docker
STOPSIGNAL SIGRTMIN+3
ENTRYPOINT [""]
CMD ["/lib/systemd/systemd"]