A systems administrator needs to verify whether the built container has the app.go file in its root directory. Which of the following can the administrator use to verify the root directory has this file?
C. docker exec <container_name> ls
This command runs the ls command inside the specified container and lists the contents of the current directory. The administrator can use this to verify whether the app.go file is present in the container's root directory.
Option B (docker container inspect) would provide detailed information about the specified container, such as its configuration and state, but it would not show the contents of the container's file system. To view the files inside the container, the administrator should use the docker exec command to execute a shell command inside the container, such as ls to list the files in the root directory.
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.
linux_admin
Highly Voted 1 year, 2 months agoAlizadeh
Most Recent 8 months, 3 weeks agoAmazing475
10 months ago