AlmaLinux / AlmaLinux/wiki

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

オープン
#441 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る
documentation enhancement
主要言語
Shell
スター
116
フォーク
94
平均マージ
19時間 30分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。