exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 51 discussion

Actual exam question from CompTIA's XK0-005
Question #: 51
Topic #: 1
[All XK0-005 Questions]

A newly created container has been unable to start properly, and a Linux administrator is analyzing the cause of the failure. Which of the following will allow the administrator to determine the FIRST command that is executed inside the container right after it starts?

  • A. docker export <container_id>
  • B. docker info <container_id>
  • C. docker start <container_id>
  • D. docker inspect <container_id>
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Alizadeh
8 months, 3 weeks ago
Selected Answer: D
The correct answer is D. docker inspect <container_id>.
upvoted 1 times
...
linux_admin
1 year, 2 months ago
Selected Answer: D
D. docker inspect <container_id> The docker inspect command provides detailed information about a Docker container, including its configuration and state. Among the information available from this command is the entrypoint, which is the first command that is executed inside the container when it starts. By inspecting the container with docker inspect, the administrator can determine the first command that is executed inside the container and potentially diagnose why it is unable to start properly.
upvoted 4 times
...
Nvoid
1 year, 5 months ago
Selected Answer: D
D is correct here, you use the inspect and default template which will output the docker run command.
upvoted 3 times
...
TheRealManish
1 year, 5 months ago
Is it really docket inspect? when i run docker inspect i just get a bunch of info about the container, but nothing about commands executed.
upvoted 1 times
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago