diff --git a/Dockerfile b/Dockerfile index 1f1fda5..2908d3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,10 +38,8 @@ RUN chmod +x initctl_faker && rm -fr /sbin/initctl && ln -s /initctl_faker /sbin RUN mkdir -p /etc/ansible RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts -# Remove unnecessary getty and udev targets that result in high CPU usage when using -# multiple containers with Molecule (https://github.com/ansible/molecule/issues/1104) -RUN rm -f /lib/systemd/system/systemd*udev* \ - && rm -f /lib/systemd/system/getty.target +# Make sure systemd doesn't start agettys on tty[1-6]. +RUN rm -f /lib/systemd/system/multi-user.target.wants/getty.target -VOLUME ["/sys/fs/cgroup", "/tmp", "/run"] +VOLUME ["/sys/fs/cgroup"] CMD ["/lib/systemd/systemd"]