Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

RedHat EX200 Exam - Topic 3 Question 69 Discussion

Part 1 (on Node1 Server)Task 15 [Running Containers]Create a container named logserver with the image rhel8/rsyslog found from the registry registry.domain15.example.com:5000The container should run as the root less user shangrila. use redhat as password [sudo user]Configure the container with systemd services as the shangrila user using the service name, ''container-logserver'' so that it can be persistent across reboot.Use admin as the username and admin123 as the credentials for the image registry.
A) Explanation: * [root@workstation ~]# ssh shangrila@node1 [shangrila@node1 ~]$ podman login registry.domain15.example.com:5000 Username: admin Password: Login Succeeded! [shangrila@node1 ~]$ podman pull registry.domain15.example.com:5000/rhel8/rsyslog [shangrila@node1 ~]$ podman run -d --name logserver registry.domain15.example.com:5000/rhel8/rsyslog 021b26669f39cc42b8e94eab886ba8293d6247bf68e4b0d76db2874aef284d6d [shangrila@node1 ~]$ mkdir -p ~/.config/systemd/user [shangrila@node1 ~]$ cd ~/.config/systemd/user * [shangrila@node1 user]$ podman generate systemd --name logserver --files --new /home/shangrila/.config/systemd/user/container-logserver.service [shangrila@node1 ~]$ systemctl --user daemon-reload [shangrila@node1 user]$ systemctl --user enable --now container-logserver.service [shangrila@node1 ~]$ podman ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 7d9f7a8a4d63 registry.domain15.example.com:5000/rhel8/rsyslog:latest /bin/rsyslog.sh 2 seconds ago logserver [shangrila@node1 ~]$ sudo reboot [shangrila@node1 ~]$ cd .config/systemd/user [shangrila@node1 user]$ systemctl --user status

RedHat EX200 Exam - Topic 3 Question 69 Discussion

Actual exam question for RedHat's EX200 exam
Question #: 69
Topic #: 3
[All EX200 Questions]

Part 1 (on Node1 Server)

Task 15 [Running Containers]

Create a container named logserver with the image rhel8/rsyslog found from the registry registry.domain15.example.com:5000

The container should run as the root less user shangril

a. use redhat as password [sudo user]

Configure the container with systemd services as the shangrila user using the service name, ''container-logserver'' so that it can be persistent across reboot.

Use admin as the username and admin123 as the credentials for the image registry.

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Tomas
8 months ago
Nice, but why use systemd for a container? Seems a bit overkill.
upvoted 0 times
...
Merlyn
8 months ago
I think you need to check the permissions for the shangrila user.
upvoted 0 times
...
Kristal
9 months ago
Wait, is it really that easy to make it persistent across reboots?
upvoted 0 times
...
Wei
9 months ago
Totally agree, this setup is super straightforward!
upvoted 0 times
...
Garry
9 months ago
Just pulled the rhel8/rsyslog image from the registry!
upvoted 0 times
...
In
9 months ago
I remember generating the systemd service file, but I'm a bit confused about the `--new` flag and its purpose in this context.
upvoted 0 times
...
Holley
9 months ago
I feel like I might have missed a step in configuring the systemd service for persistence. Did we have to specify any additional options?
upvoted 0 times
...
Keneth
9 months ago
I practiced something similar last week, but I can't recall if I used `podman` or `docker` for the container creation.
upvoted 0 times
...
Dallas
9 months ago
I think I remember needing to log in to the registry first, but I'm not entirely sure about the exact command syntax.
upvoted 0 times
...
Quinn
9 months ago
Okay, I've got this. SSH is port 22 and HTTPS is port 443. Those are the two ports I need to include in the ACLs.
upvoted 0 times
...
Reiko
10 months ago
Postponing the meeting to analyze the impact and discuss priorities with the stakeholders is probably the safest option, even if it's not the most convenient.
upvoted 0 times
...

Save Cancel