RHCSA 8 Exam Practice Question 9 - Managing Containers
RHCSA 8 Exam Practice Question 9 - Managing Containers
TEKNEED
BASIC LINUX TUTORIAL POINT WITH EXAMPLES
Question 9 (Managing
Containers In Linux) RECENT COMMENTS
October 2, 2020
Victor
RHCSA 8 DUMPS/Exam Practice Questions
Victor on How To Configure NFS In
19 Linux – RHEL/CentOS 7&8
ARCHIVES
February 2022
January 2022
As the student user, create a detached apache http web
1ª MENSALIDADE December 2021
server container with the name, (site1) and withA PARTIR
the DE tag
r$
59 November 2021
https://tekneed.com/rhcsa-8-exam-practice-question-9-managing-containers/ 1/22
3/31/22, 3:11 PM RHCSA 8 Exam Practice Question 9 - Managing Containers
July 2021
Use the username, administrator and the password,
June 2021
admin123
May 2021
April 2021
Create and mount the ~/storage/html/ directory as a
March 2021
persistent storage to the container as /var/www/. The
February 2021
content of ~/storage/html should be extracted from
January 2021
/tmp/image/containers.tgz
December 2020
July 2020
configure the container as a service using systemd and June 2020
make the web server/container persistent across May 2020
reboot.
April 2020
March 2020
problem.
RHCSA, 8 Course
https://tekneed.com/rhcsa-8-exam-practice-question-9-managing-containers/ 2/22
3/31/22, 3:11 PM RHCSA 8 Exam Practice Question 9 - Managing Containers
Linux On Azure
1. Before we can configure containers, we need the
Linux Snippet
container-tools module. Verify if the container-tools
Red Hat Ansible
module is installed.
RHCE
RHCSA, 8
Technology Today
Username: administrator
Password:
Login Succeeded!
[student@DRDEV1 ~]$
1ª MENSALIDADE
A PARTIR DE
r$
59
https://tekneed.com/rhcsa-8-exam-practice-question-9-managing-containers/ 3/22
3/31/22, 3:11 PM RHCSA 8 Exam Practice Question 9 - Managing Containers
"Name": "registry.redhat.io/rhel8/httpd-24",
"Digest":
"sha256:43b6a13d3e6674ec684ba2cdf433633cabe4963a24e00b5
9f32532b31bbf1ce5",
"RepoTags": [
"1-112",
"1-118",
"1-118-source",
"1-70",
"1-30.1562749848",
"1-76",
"1-52",
"1-42",
"1-30",
"1",
"1-76.1584015406",
"1-98",
"1-112.1599745027",
"1-92",
"1-104",
"1-105",
"1-60",
"1-63",
"1-92.1590691900",
"1-30.1561731107",
"1-28",
"1-25",
"1-89",
1ª MENSALIDADE
A PARTIR DE
59
"latest"
r$
https://tekneed.com/rhcsa-8-exam-practice-question-9-managing-containers/ 4/22
3/31/22, 3:11 PM RHCSA 8 Exam Practice Question 9 - Managing Containers
Storing signatures
e00cffb90b6479531b8c5baa0d0ba57019c811184824246d7362807
9644b8ca6
index.html
1ª MENSALIDADE
A PARTIR DE
drwxrwxr-x. 3 student student 18 Dec r$
7 17:19 storage/
59
https://tekneed.com/rhcsa-8-exam-practice-question-9-managing-containers/ 6/22
3/31/22, 3:11 PM RHCSA 8 Exam Practice Question 9 - Managing Containers
20432130c52d9c1cec9eac62f24503da8c0a271a51aba9324548a11
194c75550
CONTAINER ID IMAGE
COMMAND CREATED STATUS
PORTS NAMES
20432130c52d registry.redhat.io/rhel8/httpd-24:1-112
/usr/bin/run-http... 50 seconds ago Up 50 seconds ago
0.0.0.0:8080->8080/tcp site1
1ª MENSALIDADE
A PARTIR DE
r$
59
https://tekneed.com/rhcsa-8-exam-practice-question-9-managing-containers/ 7/22
3/31/22, 3:11 PM RHCSA 8 Exam Practice Question 9 - Managing Containers
1ª MENSALIDADE
A PARTIR DE
r$
59
https://tekneed.com/rhcsa-8-exam-practice-question-9-managing-containers/ 8/22
3/31/22, 3:11 PM RHCSA 8 Exam Practice Question 9 - Managing Containers
[student@DRDEV1 user]$ ls
container-site1.service
UID=1005
GID=1005
Name=student
TimestampMonotonic=245042201
RuntimePath=/run/user/1005
Slice=user-1005.slice
Display=47
1ª MENSALIDADE
State=active
A PARTIR DE
r$
59
Sessions=47 4 2
IdleHint=no
https://tekneed.com/rhcsa-8-exam-practice-question-9-managing-containers/ 10/22
3/31/22, 3:11 PM RHCSA 8 Exam Practice Question 9 - Managing Containers
IdleSinceHint=0
IdleSinceHintMonotonic=0
Linger=yes
28d99a8041ccb30fc9335af638cadb22544fcf13a6319d6086c74d3
539040473
1ª MENSALIDADE
28d99a8041ccb30fc9335af638cadb22544fcf13a6319d6086c74d3
A PARTIR DE
59
539040473
r$
https://tekneed.com/rhcsa-8-exam-practice-question-9-managing-containers/ 11/22
3/31/22, 3:11 PM RHCSA 8 Exam Practice Question 9 - Managing Containers
Created symlink
/home/student/.config/systemd/user/multi-
user.target.wants/container-site1.service →
/home/student/.config/systemd/user/container-
site1.service.
Created symlink
/home/student/.config/systemd/user/default.target.wants
/container-site1.service →
/home/student/.config/systemd/user/container-
site1.service.
CONTAINER ID IMAGE
COMMAND CREATED STATUS
PORTS NAMES
20432130c52d registry.redhat.io/rhel8/httpd-24:1-112
/usr/bin/run-http... About a minute ago Up About a
minute ago 0.0.0.0:8080->8080/tcp site1
21. stop the container and reboot the system if you wish
and verify that the container is persistent.
CONTAINER ID IMAGE
COMMAND CREATED STATUS
PORTS NAMES
20432130c52d registry.redhat.io/rhel8/httpd-24:1-112
/usr/bin/run-http... 12 minutes ago Up 12 minutes ago
0.0.0.0:8080->8080/tcp site1
1ª MENSALIDADE
A PARTIR DE
r$
59
https://tekneed.com/rhcsa-8-exam-practice-question-9-managing-containers/ 13/22
3/31/22, 3:11 PM RHCSA 8 Exam Practice Question 9 - Managing Containers
Solution Summary
skopeo inspect
docker://registry.redhat.io/rhel8/httpd-24
|more
ls -l /home/student/storage/html
mkdir -p /home/student/storage/html
1ª MENSALIDADE
A PARTIR DE
r$
59
https://tekneed.com/rhcsa-8-exam-practice-question-9-managing-containers/ 14/22
3/31/22, 3:11 PM RHCSA 8 Exam Practice Question 9 - Managing Containers
curl http://localhost:8080
mkdir -p /home/student/.config/systemd/user
cd /home/student/.config/systemd/user/
loginctl enable-linger
1ª MENSALIDADE
A PARTIR DE
You can also watch the Video on RHCSA 8 Exam Practice Question 9r$
the link below. 59
by clicking
https://tekneed.com/rhcsa-8-exam-practice-question-9-managing-containers/ 15/22
3/31/22, 3:11 PM RHCSA 8 Exam Practice Question 9 - Managing Containers
PREVIOUS NEXT
RHCSA 8 Exam Practice RHCSA 8 Exam Practice
Question 8 (Archiving Question 10 (Process
Files & SELinux) Management In Linux)
19 COMMENTS
baxana
JANUARY 23, 2021 AT 8:02 AM
Hello Victor\
1ª MENSALIDADEi am
thanks for valuable info when i run systemctl status container-ihs1.service,
A PARTIR DE
59
getting `unit container-ihs1.service could not be found`
r$
any idea
https://tekneed.com/rhcsa-8-exam-practice-question-9-managing-containers/ 16/22
3/31/22, 3:11 PM RHCSA 8 Exam Practice Question 9 - Managing Containers
REPLY
baxana
JANUARY 23, 2021 AT 8:06 PM
Hello Victor\
REPLY
Victor Oluwatomisin O.
JANUARY 24, 2021 AT 7:39 PM
That’s great. You encounter this kind of problem mostimes when you use su
command to switch user to the rootless container user. your problem is
similar to Mayur’s own in the comment section of this link
(https://www.youtube.com/watch?
v=1ZLThVl1aTw&list=PLPmshpW0EvYBFSx0RRRov9C5juxs2_k_Y&index=
104)
REPLY
Audrey
JANUARY 25, 2021 AT 7:24 AM
Thanks a lot. I got your premium Questions and answers and your site has really
helped me. I am preparing for my next phase which is RHCE. Do you have any
package for RHCE.
REPLY
Willie
JANUARY 28, 2021 AT 11:21 AM
Victor h ,
https://tekneed.com/rhcsa-8-exam-practice-question-9-managing-containers/ 17/22
3/31/22, 3:11 PM RHCSA 8 Exam Practice Question 9 - Managing Containers
Why did you not enter “/home/student/storage/html ” does this do the same…?
REPLY
Victor Oluwatomisin O.
JANUARY 28, 2021 AT 5:46 PM
REPLY
mohamedi
FEBRUARY 10, 2021 AT 11:34 AM
Redhat they remove docker but i see here u still use it? is not issues?
REPLY
Victor Oluwatomisin O.
FEBRUARY 11, 2021 AT 9:58 AM
REPLY
Pablo
FEBRUARY 24, 2021 AT 5:33 PM
Why adding a –new, once you stop it and you generate the service file, without
the new you wont neet to remove the stopped container. Does it make any
difference for the examn, as I read to take care with the new option in
production environments.
REPLY
Victor Oluwatomisin O.
FEBRUARY 25, 2021 AT 7:53 PM
1ª MENSALIDADE
A PARTIR DE
Hello Pablo, can you please rephrase your question as I don’t fully
understand? r$
59
https://tekneed.com/rhcsa-8-exam-practice-question-9-managing-containers/ 18/22
3/31/22, 3:11 PM RHCSA 8 Exam Practice Question 9 - Managing Containers
REPLY
Nithya K
OCTOBER 26, 2021 AT 3:11 AM
REPLY
Randy
MAY 4, 2021 AT 6:18 PM
how will you be able to answer a question like this on the exam if there is no
internet connection during the exam? you would need to be able to log on to
the registry and pull the image.
REPLY
Randy
MAY 4, 2021 AT 8:48 PM
how would tasks like these be asked as a question on the exam if you don’t have
an internet connection during the exam?
REPLY
Nithya
MAY 18, 2021 AT 9:41 AM
REPLY
arif
JULY 12, 2021 AT 4:18 AM
1ª MENSALIDADE
A PARTIR DE
r$
59
https://tekneed.com/rhcsa-8-exam-practice-question-9-managing-containers/ 19/22
3/31/22, 3:11 PM RHCSA 8 Exam Practice Question 9 - Managing Containers
Hi,
The q says:
If so, when the container will look for its index.html file, it will look for:
“/var/www/html/index.html”
Is my understanding correct? I have checked it; it does work only the way I
explained;
REPLY
Rafał
JULY 26, 2021 AT 10:31 AM
REPLY
Sofi
JULY 26, 2021 AT 3:14 PM
MENSALIDADE
The output is showing as
A PARTIR DE
D- bus error r$
59
https://tekneed.com/rhcsa-8-exam-practice-question-9-managing-containers/ 20/22
3/31/22, 3:11 PM RHCSA 8 Exam Practice Question 9 - Managing Containers
REPLY
Faisal Shaheen
JANUARY 9, 2022 AT 5:43 AM
REPLY
Randy T
AUGUST 24, 2021 AT 3:23 PM
REPLY
Leave a Reply
Your email address will not be published.
Comment
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I
comment.
POST COMMENT
1ª MENSALIDADE
A PARTIR DE
RECENT POSTS r$
59
https://tekneed.com/rhcsa-8-exam-practice-question-9-managing-containers/ 21/22
3/31/22, 3:11 PM RHCSA 8 Exam Practice Question 9 - Managing Containers
1ª MENSALIDADE
A PARTIR DE
r$
59
https://tekneed.com/rhcsa-8-exam-practice-question-9-managing-containers/ 22/22