Skip to content
New issue

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

Pls add a Sample to the Wiki Page how to run the Almalinux8-init container #441

Open
naseweis-io opened this issue Jun 21, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@naseweis-io
Copy link

naseweis-io commented Jun 21, 2024

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

@bennyvasquez bennyvasquez added documentation Improvements or additions to documentation enhancement New feature or request labels Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants