Advertisement
Guest User

dockerfile

a guest
Nov 14th, 2020
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.59 KB | None | 0 0
  1. FROM centos:centos7.8.2003
  2. ENV container docker
  3. RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \
  4. systemd-tmpfiles-setup.service ] || rm -f $i; done); \
  5. rm -f /lib/systemd/system/multi-user.target.wants/*;\
  6. rm -f /etc/systemd/system/*.wants/*;\
  7. rm -f /lib/systemd/system/local-fs.target.wants/*; \
  8. rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
  9. rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
  10. rm -f /lib/systemd/system/basic.target.wants/*;\
  11. rm -f /lib/systemd/system/anaconda.target.wants/*;
  12. VOLUME [ "/sys/fs/cgroup" ]
  13. CMD ["/usr/sbin/init"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement