AlmaLinux / AlmaLinux/wiki

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

未关闭
#441 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
documentation enhancement
主要语言
Shell
星标
116
派生
94
平均合并
19 小时 30 分钟
30 天内合并 PR
13

描述

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](url)

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
`

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。