We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey Guys,
can you pls add a Sample to the WikiPage how to run an almalinux-init container here: https://wiki.almalinux.org/containers/docker-images.html#almalinux-docker-images-variants
It should rly be documented. At the point i did this just almalinux8-init was working. almalinux9-init was crashing.
This is an example how to run an Example Container with SSH Connection and HTTP Service:
Dockerfile: FROM almalinux/8-init RUN yum -y install httpd; yum -y install openssh-server; yum clean all; systemctl enable httpd; systemctl enable sshd; echo "root:root" | chpasswd ADD * /var/www/html/ EXPOSE 80 22 CMD ["/usr/sbin/init"]
Build the Image: docker build --rm --no-cache -f {{dir}}almalinux-init -t httpd_ssh .
docker build --rm --no-cache -f {{dir}}almalinux-init -t httpd_ssh .
Run the Image docker run -d --restart=always --name {{containerName}} --network {{network}} --ip {{ip}} --privileged=true httpd_ssh /usr/sbin/init
docker run -d --restart=always --name {{containerName}} --network {{network}} --ip {{ip}} --privileged=true httpd_ssh /usr/sbin/init
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey Guys,
can you pls add a Sample to the WikiPage how to run an almalinux-init container here: https://wiki.almalinux.org/containers/docker-images.html#almalinux-docker-images-variants
It should rly be documented. At the point i did this just almalinux8-init was working. almalinux9-init was crashing.
This is an example how to run an Example Container with SSH Connection and HTTP Service:
Dockerfile:
FROM almalinux/8-init
RUN yum -y install httpd; yum -y install openssh-server; yum clean all; systemctl enable httpd; systemctl enable sshd; echo "root:root" | chpasswd
ADD * /var/www/html/
EXPOSE 80 22
CMD ["/usr/sbin/init"]
Build the Image:
docker build --rm --no-cache -f {{dir}}almalinux-init -t httpd_ssh .
Run the Image
docker run -d --restart=always --name {{containerName}} --network {{network}} --ip {{ip}} --privileged=true httpd_ssh /usr/sbin/init
The text was updated successfully, but these errors were encountered: