У нас вы можете посмотреть бесплатно RHCSA Lab Q21: Build a Podman image and enable autostart with systemd или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
In this RHCSA practice lab (Q21b), we clone a GitHub repository, build a Podman image from its Dockerfile, run the container as user student, and configure it to autostart on boot using a systemd user service. This task combines container basics with service management. ✅ What you’ll learn: Clone a GitHub repo and build an image from a Dockerfile Run a container as a non-root user with volume mounts Generate and enable a systemd user service for Podman containers Use loginctl enable-linger to keep user services running after logout 📌 Exam-style Question: On the client, clone https://github.com/sachinyadav3496/Te... Build an image named myimage from the repo’s Dockerfile (do not modify it). Run a container as user student named mycontainer, mounting: /opt/file → /data/input /opt/processed → /data/output Ensure the container autostarts on boot (systemd user service). 🔑 Commands Used in This Video Enable lingering (as root) loginctl enable-linger student visudo Add: student ALL=(ALL) NOPASSWD: /usr/bin/mkdir Login as student (or as root change the owner of the directories to student:student and do a restorecon -RFv /opt/file /opt/processed) su - student sudo mkdir -p /opt/file /opt/processed Clone and build git clone https://github.com/sachinyadav3496/Te... cd Text-To-PDF podman build -t myimage -f Dockerfile . podman images Run container as student podman run -d --name mycontainer \ -v /opt/file:/data/input:Z \ -v /opt/processed:/data/output:Z \ myimage Test conversion touch /opt/file/test.txt ls /opt/processed man podman-generate-systemd Generate systemd unit podman generate systemd --name mycontainer --files --new Move unit file into user directory mkdir -p $HOME/.config/systemd/user mv container-mycontainer.service $HOME/.config/systemd/user/ Add this to your .bashrc export XDG_RUNTIME_DIR=/run/user/$(id -u) source ~/.bashrc Reload and enable systemctl --user daemon-reload systemctl --user enable --now container-mycontainer systemctl --user status container-mycontainer 📺 Playlist 👉 Watch the complete RHCSA Exam Labs playlist here: • RHCSA (EX200) Full exam course with labs —... 📌 Tags / Keywords #RHCSA #Linux #ExamPrep #RockyLinux #podman #systemd #containers #RedHat