Created
July 7, 2014 10:13
-
-
Save michaelneale/8e4179297ebb63370804 to your computer and use it in GitHub Desktop.
Systemd in docker (non priv attempt)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM cloudbees/archbase | |
RUN systemctl mask tmp.mount | |
RUN rm /usr/lib/systemd/system/tmp.mount && ln -s '/dev/null' '/usr/lib/systemd/system/tmp.mount' | |
RUN cd /usr/lib/systemd/system/ \ | |
&& sed -i 's/PrivateTmp=yes//g' systemd-timedated.service \ | |
&& sed -i 's/PrivateTmp=yes//g' systemd-machined.service \ | |
&& sed -i 's/PrivateTmp=yes//g' systemd-hostnamed.service \ | |
&& sed -i 's/PrivateTmp=yes//g' systemd-localed.service \ | |
&& sed -i 's/PrivateTmp=yes//g' systemd-timesyncd.service \ | |
&& sed -i 's/PrivateTmp=yes//g' systemd-journal-gatewayd.service | |
RUN cd /usr/lib/systemd/system && for i in *.service; do sed -i 's/PrivateDevices=yes//g' $i; done | |
RUN cd /usr/lib/systemd/system && for i in *.service; do sed -i 's/PrivateNetwork=yes//g' $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment