Created
March 27, 2023 06:16
-
-
Save AlperRehaYAZGAN/47c879786192c64ceef114b880bd81ac to your computer and use it in GitHub Desktop.
A simple dockerfile that supports systemctl command on rockylinux.
This file contains hidden or 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 rockylinux:8.7 | |
# update | |
RUN yum -y update | |
# install systemd | |
RUN yum -y install initscripts curl systemd | |
# minio client | |
RUN curl -L https://dl.min.io/client/mc/release/linux-amd64/mc -o /usr/local/bin/mc && \ | |
chmod +x /usr/local/bin/mc | |
# usr/sbin/init for enable systemctl commands | |
# System has not been booted with systemd as init system (PID 1). Can't operate. | |
# Failed to connect to bus: Host is down | |
CMD ["/usr/sbin/init"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment