2018-07-13 22:50:23 +00:00
|
|
|
FROM ubuntu:18.04
|
|
|
|
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
RUN apt update && \
|
2018-07-13 23:00:41 +00:00
|
|
|
apt install --yes python-minimal systemd gnupg iproute2
|
2018-07-13 22:50:23 +00:00
|
|
|
|
|
|
|
RUN cd /lib/systemd/system/sysinit.target.wants/ && \
|
|
|
|
ls | grep -v systemd-tmpfiles-setup.service | xargs rm -f && \
|
|
|
|
rm -f /lib/systemd/system/sockets.target.wants/*udev* && \
|
|
|
|
systemctl mask -- \
|
|
|
|
tmp.mount \
|
|
|
|
etc-hostname.mount \
|
|
|
|
etc-hosts.mount \
|
|
|
|
etc-resolv.conf.mount \
|
|
|
|
-.mount \
|
|
|
|
swap.target \
|
|
|
|
getty.target \
|
|
|
|
getty-static.service \
|
|
|
|
dev-mqueue.mount \
|
|
|
|
cgproxy.service \
|
|
|
|
systemd-tmpfiles-setup-dev.service \
|
|
|
|
systemd-remount-fs.service \
|
|
|
|
systemd-ask-password-wall.path \
|
|
|
|
systemd-logind.service && \
|
|
|
|
systemctl set-default multi-user.target || true
|
|
|
|
|
|
|
|
RUN sed -ri /etc/systemd/journald.conf \
|
|
|
|
-e 's!^#?Storage=.*!Storage=volatile!'
|