A Linux administrator needs to analyze a failing application that is running inside a container. Which of the following commands allows the Linux administrator to enter the running container and analyze the logs that are stored inside?
B. podman exec -ti app /bin/sh
The podman exec command allows a Linux administrator to enter a running container and perform operations inside the container. The -ti options specify that the administrator wants to run the command interactively with a TTY and with STDIN attached.
The app in the command specifies the name or ID of the running container that the administrator wants to enter. The /bin/sh at the end of the command specifies the shell to use inside the container.
In this case, the administrator wants to enter the container to analyze logs that are stored inside. To accomplish this, the administrator should run the following command:
podman exec -ti app /bin/sh
This command will enter the running container named app and open a shell inside the container. The administrator can then use standard Linux commands to analyze the logs and diagnose the issue with the failing application
upvoted 1 times
...
...
This section is not available anymore. Please use the main Exam Page.XK0-005 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Aamm033
Highly Voted 1 year agolinux_admin
Most Recent 8 months, 4 weeks agolinux_admin
8 months, 4 weeks ago